From 8712ca15b2d5efdbb7462f2ae4b22315f7db87e2 Mon Sep 17 00:00:00 2001 From: Francisco Hodge Date: Mon, 2 Aug 2021 01:11:32 -0700 Subject: [PATCH] Update and rename dependabot.yml to dependabot_merge.yml --- .../workflows/{dependabot.yml => dependabot_merge.yml} | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) rename .github/workflows/{dependabot.yml => dependabot_merge.yml} (66%) diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot_merge.yml similarity index 66% rename from .github/workflows/dependabot.yml rename to .github/workflows/dependabot_merge.yml index 03e43a32..8202976a 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot_merge.yml @@ -15,13 +15,10 @@ jobs: uses: dependabot/fetch-metadata@v1.1.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" - - name: Approve a PR - run: gh pr review --approve "$PR_URL" - - name: Enable auto-merge for Dependabot PRs - run: gh pr merge --auto --merge "$PR_URL" + - name: automerge + uses: "pascalgn/automerge-action@v0.14.2" env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - name: Reject PR if: failure() uses: superbrothers/close-pull-request@v3