Skip to content

Commit 0706fa2

Browse files
committed
Attempt to fix pre-commit auto update pull request approvals
Command: gh pr review --approve "php-curl-class#821" shell: /usr/bin/bash -e {0} env: PULL_REQUEST_NUMBER: 821 GITHUB_TOKEN: *** failed to create review: GraphQL: Can not approve your own pull request (addPullRequestReview) Error: Process completed with exit code 1.
1 parent 23b2900 commit 0706fa2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/dependabot-auto-merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
gh pr merge --auto --merge "$PR_URL"
2323
env:
2424
PR_URL: ${{github.event.pull_request.html_url}}
25-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2626
- name: Approve and merge Dependabot minor updates
2727
if: ${{steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor'}}
2828
run: |
@@ -31,4 +31,4 @@ jobs:
3131
gh pr merge --auto --merge "$PR_URL"
3232
env:
3333
PR_URL: ${{github.event.pull_request.html_url}}
34-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pre-commit-auto-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ jobs:
5555
run: |
5656
gh pr review --approve "${{ steps.cpr.outputs.pull-request-url }}"
5757
env:
58-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
58+
GITHUB_TOKEN: ${{ secrets.PHP_CURL_CLASS_TOKEN }}

0 commit comments

Comments
 (0)