GitHub Actions Trigger Matcher

Find out whether a workflow runs for a push or pull request, and which filter decides it.

Workflow and event

The on: block is read; jobs: is ignored. Supported filters: branches, branches-ignore, tags, tags-ignore, paths, paths-ignore.

The branch or tag name, without refs/heads/ or refs/tags/. For a pull request it is the base branch.

One path per line, relative to the repository root. Only used when the workflow filters on paths or paths-ignore.

A workflow runs when the event matches and every ref and path filter is satisfied. branches and paths are globs where * stops at a slash and ** crosses it; ? and + repeat the character before them, and a leading ! subtracts from the patterns above it. The last matching pattern decides, so a later positive pattern re-includes a path. Path filters are not evaluated for tag pushes, and defining only branch filters means a tag push never runs. Activity types (types:), schedule, reusable-workflow and dispatch inputs are not modelled, and nothing leaves this page.