-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow filtering on all event types #43
Comments
I'm not exactly sure what do you mean by changes to HEAD. Anyway I could make it work for any event the same way as it currently works for push events:
Would this work for you? |
yea. that'd be awesome. and all those sound really useful as well (especially the before commit one). for more context on what I'm trying to do. I'm starting to split out workflows because the jobs are getting really large. I'm sending a couple repository dispatch events every time a merge happens to master. So, I really just want to check for changes on the last commit on the current branch that is checked out. sorry, it's been a long day so I hope I'm still making sense :) |
Ok, so the idea is clear now. Implementing the changes should be quite easy. I plan to do it later today. |
Should work now. I tested it with example bellow.
Consider starring the repo :) Example:First workflow which triggers the second one:
Follow up workflow:
|
It would be useful if this could filter based on changes to HEAD. I've ran into patterns where I want to send dispatches to start other workflows for syncing translations or uploading changed assets. But those jobs cannot use this because it gets the error:
This action can be triggered only by pull_request or push event
Thanks for the work!
The text was updated successfully, but these errors were encountered: