From 81c716927032872fd27ed96ff8fa85d69c415832 Mon Sep 17 00:00:00 2001 From: Conicaw Date: Mon, 24 Jul 2023 19:26:39 -0500 Subject: [PATCH] ci(auto-merge): use push-token Use push-token --- .github/workflows/auto-merge.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 0ce0bed..f708810 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -18,16 +18,16 @@ jobs: id: dependabot-metadata uses: dependabot/fetch-metadata@v1.6.0 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.PUSH_TOKEN }} - name: Approve Pull Request if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }} run: gh pr review -R "${{ github.repository }}" --approve "${{ github.event.pull_request.number }}" env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }} - name: Enable auto-merge for Dependabot PRs if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }} run: gh pr merge -R "${{ github.repository }}" --merge --auto "${{ github.event.pull_request.number }}" env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}