From 0706fa21867e90cca10b828e8b52e6780a64916e Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Thu, 26 Oct 2023 12:50:47 -0700 Subject: [PATCH] Attempt to fix pre-commit auto update pull request approvals Command: gh pr review --approve "https://github.com/php-curl-class/php-curl-class/pull/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. --- .github/workflows/dependabot-auto-merge.yml | 4 ++-- .github/workflows/pre-commit-auto-update.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 8cbdc96..e18f0b4 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -22,7 +22,7 @@ jobs: gh pr merge --auto --merge "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Approve and merge Dependabot minor updates if: ${{steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor'}} run: | @@ -31,4 +31,4 @@ jobs: gh pr merge --auto --merge "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pre-commit-auto-update.yml b/.github/workflows/pre-commit-auto-update.yml index 45bc16a..32c8aee 100644 --- a/.github/workflows/pre-commit-auto-update.yml +++ b/.github/workflows/pre-commit-auto-update.yml @@ -55,4 +55,4 @@ jobs: run: | gh pr review --approve "${{ steps.cpr.outputs.pull-request-url }}" env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{ secrets.PHP_CURL_CLASS_TOKEN }}