Skip to content

Commit 63b3825

Browse files
committed
ci: merge dependabot PRs with PAT so CI triggers
1 parent d37cfe4 commit 63b3825

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/automerge.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ name: Dependabot auto-merge
1313
# * `gh pr merge --auto --squash` lets GitHub gate the actual merge on the
1414
# repository's required status checks (configured via branch protection),
1515
# 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.
1619

1720
'on':
1821
pull_request_target:
@@ -46,5 +49,5 @@ jobs:
4649
steps.meta.outputs.dependency-type == 'indirect'
4750
env:
4851
PR_URL: ${{ github.event.pull_request.html_url }}
49-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
GH_TOKEN: ${{ secrets.AUTOMERGE_PAT }}
5053
run: gh pr merge --auto --squash "$PR_URL"

0 commit comments

Comments
 (0)