How do `branches` and `branches-ignore` filters work with globs?
BeginnerConceptTriggers & Events
Answer
They accept glob patterns: * matches anything except /, ** matches anything including /, and ! negates within branches (order matters; later patterns override earlier). You cannot use branches and branches-ignore for the same event.
on:
push:
branches:
- main
- "release/**"
- "!release/**-alpha"
More on Triggers & Events
How do you trigger a workflow on pushes to `main` and on PRs that target `main`?BeginnerWhat activity types does `pull_request` trigger on by default, and how do you add more?IntermediateHow do path filters work, and what are their limits?AdvancedHow do you trigger only on version tags, and what is the gotcha with pushing many tags?IntermediateWhat is `workflow_dispatch`, and what input types does it support?BeginnerWhy does `github.event.inputs.dry_run == true` never match, while `inputs.dry_run` works?Intermediate