Skip to content

Commit a81de5c

Browse files
authored
Use RELEASE_TOKEN for post-release PR and auto-merge (#124)
1 parent 3909817 commit a81de5c

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/auto-merge.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ on:
33
pull_request_target:
44
types: [opened, synchronize, reopened]
55

6-
permissions:
7-
contents: write
8-
pull-requests: write
9-
106
jobs:
117
auto-merge:
128
name: 🤝 Auto-merge
@@ -17,4 +13,4 @@ jobs:
1713
run: gh pr merge --auto --squash "$PR_URL"
1814
env:
1915
PR_URL: ${{ github.event.pull_request.html_url }}
20-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }}

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
echo "next_version=$NEXT_VERSION" >> $GITHUB_OUTPUT
6666
- name: 📝 Create post-release PR
6767
env:
68-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
6969
run: |
7070
VERSION="${{ github.event.release.tag_name }}"
7171
NEXT_VERSION="${{ steps.next.outputs.next_version }}"

0 commit comments

Comments
 (0)