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}}