-
Notifications
You must be signed in to change notification settings - Fork 208
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
Use repository_dispatch event to trigger events for merged PRs #117
Comments
This is already integrated: https://github.com/pascalgn/automerge-action/blob/master/lib/api.js#L73 It's also included in the list of supported events: https://github.com/pascalgn/automerge-action#supported-events |
I'm not sure if we are talking about the same thing. If I understand correctly, that is so the automerge action is run on I'm still a bit new to GitHub actions so I'm not sure if I am making sense, but what I actually want is to workaround this limitation: When a pull request is merged by this action, the merge will not trigger other GitHub workflows. by having some configuration to tell the automerge action to create a repository_dispatch event, with a, (possibly configurable) Would that be possible? |
The workflow_run event is always triggered by this action (as all other actions). I've updated the README accordingly. |
Hi @pascalgn, I still find it hard to see how I can do what I request here. If in my test/deploy workflow I act upon a Thanks! |
When I use this action to automerge a PR (using squash and merge). |
Yes, you need to configure that CI action to be triggered on |
Sorry to bother you again, but then I assume that you don't know of any examples to point us to, right? Again, I know very little about GitHub actions as I only started to use them not too long ago, but from what I understand from the documentation of the repository dispatch event, the action should create the even via an API call (and only when the PR was merged) so other workflows can run Using just |
The limitation of actions not being run for
push
es done by this action is a bit annoying, as merge commits are not tested.GiHub offers a
repository_dispatch
event that can be used to trigger actions manually using a GitHub API call to generate the event.I wonder if this mechanism can be integrated into this action, so to make sure other actions are ran for merges, one just need to add one more
on:
event trigger includingrepository_dispatch
.The text was updated successfully, but these errors were encountered: