From 62d457f92edec0d87beb4d8bfca10a5c70325025 Mon Sep 17 00:00:00 2001 From: ktr Date: Sat, 13 Nov 2021 00:07:50 +0900 Subject: [PATCH] fix auto aprove and merge workflow (#478) --- .github/workflows/approve_and_merge.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/approve_and_merge.yml b/.github/workflows/approve_and_merge.yml index 7a58e55e..98d305e9 100644 --- a/.github/workflows/approve_and_merge.yml +++ b/.github/workflows/approve_and_merge.yml @@ -12,14 +12,14 @@ jobs: id: metadata uses: dependabot/fetch-metadata@v1.1.1 with: - github-token: "${{ secrets.GITHUB_TOKEN }}" + github-token: ${{secrets.GH_TOKEN}} - name: Approve - run: gh pr review --approve "$PR_URL" + run: gh pr review --approve $PR_URL env: PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{secrets.GH_TOKEN}} - name: Enable auto-merge - run: gh pr merge --auto --merge "$PR_URL" + run: gh pr merge --auto --merge $PR_URL env: PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{secrets.GH_TOKEN}}