Skip to content

Commit 51d48f9

Browse files
authored
Update approve-merge.yml
Updates secret to use GH_MERGE_TOKEN.
1 parent 99c0067 commit 51d48f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/approve-merge.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ jobs:
3434
uses: actions/checkout@v3
3535
with:
3636
ref: ${{ github.event.pull_request.head.sha }} # Checkout the PR's head commit
37-
token: ${{ secrets.GH_TOKEN_RELEASE }}
37+
token: ${{ secrets.GH_MERGE_TOKEN }}
3838

3939
- name: Approve PR
4040
run: gh pr review --approve "$PR_URL"
4141
env:
4242
PR_URL: ${{ github.event.pull_request.html_url }}
43-
GH_TOKEN: ${{ secrets.GH_TOKEN_RELEASE }}
43+
GH_TOKEN: ${{ secrets.GH_MERGE_TOKEN }}
4444

4545
- name: Merge PR
4646
run: gh pr merge --auto --squash --delete-branch "$PR_URL"
4747
env:
4848
PR_URL: ${{ github.event.pull_request.html_url }}
49-
GH_TOKEN: ${{ secrets.GH_TOKEN_RELEASE }}
49+
GH_TOKEN: ${{ secrets.GH_MERGE_TOKEN }}

0 commit comments

Comments
 (0)