Skip to content

Commit 6c3e1c7

Browse files
committed
Uses gh pr review --approve
1 parent 77b8f88 commit 6c3e1c7

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/DependabotCommit.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626

2727
runs-on: ${{ matrix.os }}
2828
timeout-minutes: 100
29+
30+
env:
31+
PR_URL: ${{ github.event.pull_request.html_url }}
32+
GITHUB_TOKEN: ${{ github.token }}
33+
2934
steps:
3035
- uses: actions/checkout@v6
3136
with:
@@ -46,9 +51,6 @@ jobs:
4651
git push
4752
4853
- name: "Update pr metadata"
49-
env:
50-
PR_URL: ${{ github.event.pull_request.html_url }}
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5254
run: |
5355
gh pr merge --auto --merge "$PR_URL"
5456
gh pr review --approve "$PR_URL"

.github/workflows/Release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ jobs:
5959
contents: write
6060
pull-requests: write
6161

62+
env:
63+
GITHUB_TOKEN: ${{ github.token }}
64+
6265
steps:
6366
- uses: actions/checkout@v6
6467
with:
@@ -73,9 +76,11 @@ jobs:
7376
git push
7477
7578
- name: Create pull request
76-
env:
77-
GITHUB_TOKEN: ${{ github.token }}
7879
run: |
7980
PR_URL="$(gh pr create --head $RELEASE_BRANCH --title 'Bump patch version' --body 'Automated monthly release merge')"
81+
echo "PR_URL=$PR_URL" >> $GITHUB_ENV
82+
83+
- name: "Update pr metadata"
84+
run: |
8085
gh pr merge --auto --merge "$PR_URL"
81-
gh pr merge --merge --admin "$PR_URL"
86+
gh pr review --approve "$PR_URL"

0 commit comments

Comments
 (0)