Skip to content

Commit 39e1ae3

Browse files
committed
Add GITHUB_TOKEN fallback for auto-merge
1 parent dfd42d2 commit 39e1ae3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/auto-merge.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,6 @@ jobs:
3636
run: gh pr merge --auto --squash "$PR_URL"
3737
env:
3838
PR_URL: ${{ github.event.pull_request.html_url }}
39-
GH_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
39+
# Use a non-GITHUB_TOKEN secret so the merge can trigger downstream workflows.
40+
# For dependabot PRs there are the empty secrets.PERSONAL_TOKEN so we use fallback.
41+
GH_TOKEN: ${{ secrets.PERSONAL_TOKEN || secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)