Pull requests merged but not closed #23391
-
I have set up a Github Actions workflow that sets every PR to auto-merge when all the checks pass. When I manually do this through the browser by clicking the auto-merge button the PR, it works fine but through the workflow, most of the time the PR ends up stuck at “Attempting to auto-merge…”. Sometimes when the merge is successful, the PR ends up merged but stays open. All the configured actions that should run when a commit is pushed to the merged branch also didn’t run. I haven’t found a way to reliably reproduce this yet. Here’s a simplified version of my workflow file:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
After reading in the forum, I think this issue is caused by how the GITHUB_TOKEN works in a workflow. This part from the docs explains it:
Since the merge is triggered by the github bot, which is using the GITHUB_TOKEN for auth, it cannot triggers my deploy workflow. |
Beta Was this translation helpful? Give feedback.
After reading in the forum, I think this issue is caused by how the GITHUB_TOKEN works in a workflow. This part from the docs explains it:
Since the merge is triggered by the github bot, which is using the GITHUB_TOKEN for auth, it cannot triggers my deploy workflow.