How to separate push events in Actions? #26412
-
Hi! Is there some method, how to separate Docs say that this event ignores (am I right?) Thanks for answers! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Yes, the push event does not have optional activity types. You can use the path filters to configure a workflow to run only when there is any modified file can match the patterns you specified. If you really need the push event can support some activity types, I recommend that you can directly share a feature request in the Feedback form for GitHub. |
Beta Was this translation helpful? Give feedback.
-
As a workaround, you could use |
Beta Was this translation helpful? Give feedback.
-
Thank you! Looks like this method allows us to make events triggering more flexible and accurate. But it’s still requires additional preparations. So, we think that this question can get simpler answer in the future |
Beta Was this translation helpful? Give feedback.
-
Thank you! You’re right: trigger file is the simplest way to emulate needed event conditions. But anyway we’ll offer |
Beta Was this translation helpful? Give feedback.
@adslbarxatov,
Yes, the push event does not have optional activity types.
You can use the path filters to configure a workflow to run only when there is any modified file can match the patterns you specified.
Any file that is added, updated or deleted in the pushed commits can let the push event trigger the workflow.
If you really need the push event can support some activity types, I recommend that you can directly share a feature request in the Feedback form for GitHub.
That will allow you to directly interact with the appropriate engineering team, and make it more convenient for the engineering team to collect and categorize your suggestions.