Skip to content

Sometimes GitHub Actions isn't triggered by pull_request closed event #26657

Discussion options

You must be logged in to vote

I’ve asked GitHub Support this issue from https://support.github.com/
and was given the following answer.

Hi there,

Thank you for your patience while the team investigated this issue.

I have been updated that the reason you are experiencing this issue is that GitHub doesn’t queue the merge commit job for closed PRs; So workflows using on: { pull_request: { types: [“closed”] } } will not consistently be triggered.

The workaround is to use a pull_request_target trigger as those do not require a merge commit but run the workflow from the target branch. But take note of the warnings in the docs below.

https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request_target

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@PColuccio
Comment options

@nuang-ee
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants