How do you trigger only on version tags, and what is the gotcha with pushing many tags?
IntermediateConceptTriggers & Events
Answer
on:
push:
tags: ["v*.*.*"]
Use tags alone if you want only tags; a push with branches but no tags filter ignores tag pushes. Gotcha: when more than three tags are pushed at once (git push --tags), GitHub does not create push events for them, so the release workflow never runs. Push release tags one at a time.
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 `branches` and `branches-ignore` filters work with globs?BeginnerHow do path filters work, and what are their limits?AdvancedWhat 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