Skip to content

Commit d57d339

Browse files
authored
Update approve-merge.yml (#421)
1 parent c1ca2bb commit d57d339

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/approve-merge.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ jobs:
3636
with:
3737
ref: ${{ github.event.pull_request.head.ref }} # Checkout the PR's head commit
3838
token: ${{ secrets.GH_MERGE_TOKEN }}
39+
40+
- name: Approve PR
41+
run: gh pr review --approve "$PR_URL"
42+
env:
43+
PR_URL: ${{ github.event.pull_request.html_url }}
44+
GH_TOKEN: ${{ secrets.GH_APPROVER_TOKEN }}
3945

4046
- name: Merge PR
4147
run: gh pr merge --auto --squash --delete-branch "$PR_URL"

0 commit comments

Comments
 (0)