GitHub Actions Not Respecting Trigger "On Create Tags"
See original GitHub issueDescribe the bug I have two github workflows, one that fires when pushing a branch to master. And another that fires only when a tag is created. However, I am itermittently seeing my tags workflow fire, even when I push a branch. This doesn’t always happen, it only happens ocassionally and generally it follows the tag creation rule. However, this is our production github workflow, and we simply cannot have a branch push cause that action to fire. What gives?
Note, I had also created this issue here: https://github.com/actions/virtual-environments/issues/2898
To Reproduce Steps to reproduce the behavior:
- Create a github actions workflow that fires on:
on:
create:
tags:
- v*
- Push a branch up to the repo, don’t create a tag. The workflow fires. This is itermittent and can’t always be replicated. So I’m perplexed here. It happens often enough to be a problem.
Expected behavior I would only expect this github action to fire when I create a tag named v1.0.0 or v1.0.1 or vAnything
Runner Version and Platform
Version of your runner? This is happening live on GitHub.com not a local runner
OS of the machine running the runner? OSX/Windows/Linux/…
What’s not working?
When a github action fires, the on
part of the workflow.
Job Log Output
N/A
Runner and Worker’s Diagnostic Logs
N/A
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
Hi, If I understand the documentation correctly, it states that the branch and tag filter are only supported for push and pull_request events. Althought it isn’t a yaml schema error, it seems to ignore branch and tag filter for all other events like create.
I made a simple workflow which only runs if you create a tag. All other create events are skipped. At least it skips create branch events.
I hope it helps 😃
I am not sure if that produces the same result when the tag is manually created using the GitHub web interface instead of being pushed.