Interview Prep/GitHub Actions/Triggers & Events

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.

All GitHub Actions questions Roadmap: GitHub Actions

More on Triggers & Events