We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d37cfe4 commit 63b3825Copy full SHA for 63b3825
1 file changed
.github/workflows/automerge.yml
@@ -13,6 +13,9 @@ name: Dependabot auto-merge
13
# * `gh pr merge --auto --squash` lets GitHub gate the actual merge on the
14
# repository's required status checks (configured via branch protection),
15
# so we do NOT need to wait for CI inside this workflow.
16
+# * The merge step authenticates with AUTOMERGE_PAT (not GITHUB_TOKEN):
17
+# pushes made with GITHUB_TOKEN do not trigger workflows, so the merged
18
+# commit would never get a CI build or deploy.
19
20
'on':
21
pull_request_target:
@@ -46,5 +49,5 @@ jobs:
46
49
steps.meta.outputs.dependency-type == 'indirect'
47
50
env:
48
51
PR_URL: ${{ github.event.pull_request.html_url }}
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52
+ GH_TOKEN: ${{ secrets.AUTOMERGE_PAT }}
53
run: gh pr merge --auto --squash "$PR_URL"
0 commit comments