Skip to content

Commit afc32b6

Browse files
committed
Fix dependabot auto-merge by using GH_TOKEN env var
The gh CLI in GitHub Actions no longer reads GITHUB_TOKEN and requires GH_TOKEN instead, causing the merge step to exit with code 4.
1 parent 2fd0a6b commit afc32b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/dependabot_automerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
run: gh pr merge --auto --rebase "$PR_URL"
2828
env:
2929
PR_URL: ${{ github.event.pull_request.html_url }}
30-
GITHUB_TOKEN: ${{ secrets.MATZBOT_DEPENDABOT_MERGE_TOKEN }}
30+
GH_TOKEN: ${{ secrets.MATZBOT_DEPENDABOT_MERGE_TOKEN }}

0 commit comments

Comments
 (0)