Skip to content

Commit 08a11dc

Browse files
committed
ci: try to fix auto deploy
1 parent 300097a commit 08a11dc

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/auto-merge.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,26 @@ jobs:
1414
id: metadata
1515
uses: dependabot/fetch-metadata@v2
1616
with:
17-
github-token: '${{ secrets.GITHUB_TOKEN }}'
17+
# https://github.com/settings/tokens/new
18+
# Expiration: No expiration
19+
# Select: repo.*
20+
github-token: '${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}'
1821
- name: Approve PR
1922
run: gh pr review --approve "$PR_URL"
2023
env:
2124
PR_URL: ${{github.event.pull_request.html_url}}
22-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
25+
# https://github.com/settings/tokens/new
26+
# Expiration: No expiration
27+
# Select: repo.*
28+
GH_TOKEN: ${{secrets.GH_PERSONAL_ACCESS_TOKEN}}
2329
- name: Enable auto-merge
2430
run: gh pr merge --auto --squash "$PR_URL"
2531
env:
2632
PR_URL: ${{github.event.pull_request.html_url}}
27-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
33+
# https://github.com/settings/tokens/new
34+
# Expiration: No expiration
35+
# Select: repo.*
36+
GH_TOKEN: ${{secrets.GH_PERSONAL_ACCESS_TOKEN}}
2837
contributors:
2938
runs-on: ubuntu-latest
3039
if: github.event.pull_request.user.login == 'github-actions[bot]'

0 commit comments

Comments
 (0)