Replies: 1 comment 3 replies
-
|
Hi @aviscode, Thanks for raising this — it’s a great observation and something that many developers run into. Currently, GitHub Actions’ Unfortunately, this behavior is by design and not documented clearly, which causes confusion and unnecessary workflow runs. Your suggested enhancement—to have As a workaround, some use It would be great if GitHub could:
I recommend adding your feedback to the [GitHub Actions repo](https://github.com/actions/runner/issues) and upvoting related issues to help prioritize this feature. Thanks again for sharing the detailed repro steps and impact — very helpful! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why are you starting this discussion?
Bug
What GitHub Actions topic or product is this about?
Actions Runner
Discussion Details
Currently, workflows using
on: push: paths:filters are triggered by tag pushes even when none of the specified paths have changed. Thepathsfilter is ignored for tag push events, which leads to unexpected and unnecessary workflow runs.Expected Behavior:
Workflows should only run on tag pushes if the specified paths have actually changed, just as they do for branch pushes.
Actual Behavior:
Workflows are triggered for tag pushes regardless of whether the filtered files were changed or not.
Steps to Reproduce:
Evidence:
pathsfilters.Workarounds:
Using
tags-ignore: "**"in your workflow disables all tag-triggered runs, but this also prevents all workflows from running on tags, which may not be desirable:Request:
Please enforce
pathsfilters for tag pushes, so that workflows only run when the specified files change, even for tags. If this limitation is intentional, please document it more clearly.Impact:
This behavior wastes CI/CD resources and causes confusion about when workflows should actually execute.
Reference: actions/runner#3933
Beta Was this translation helpful? Give feedback.
All reactions