Skip to content

Commit 01c5b9a

Browse files
auto-merge as a user
when commits are made by the github actions user then they are skipped by github actions
1 parent 2d9cfd8 commit 01c5b9a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/auto-merge.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ jobs:
99
steps:
1010
- run: |
1111
set -x
12-
gh pr review --approve --repo "$GITHUB_REPOSITORY" "$PR"
13-
gh pr merge --auto --merge --repo "$GITHUB_REPOSITORY" "$PR"
12+
GH_TOKEN=$GHA_TOKEN gh pr review --approve --repo "$GITHUB_REPOSITORY" "$PR"
13+
GH_TOKEN=$BOT_TOKEN gh pr merge --auto --merge --repo "$GITHUB_REPOSITORY" "$PR"
1414
env:
1515
PR: ${{ github.event.number }}
16-
GH_TOKEN: ${{ github.token }}
16+
GHA_TOKEN: ${{ github.token }}
17+
BOT_TOKEN: ${{ secrets.GH_RELEASE_PAT }}

0 commit comments

Comments
 (0)