From be0b3ba4024d58c716af3ab235b7747160266e81 Mon Sep 17 00:00:00 2001 From: Kimmo Lehto Date: Fri, 18 Aug 2023 11:03:58 +0300 Subject: [PATCH] Fix dependabot auto-approve workflow (#543) Signed-off-by: Kimmo Lehto --- ...abot-auto-merge.yml => dependabot-auto-approve.yml} | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) rename .github/workflows/{dependabot-auto-merge.yml => dependabot-auto-approve.yml} (62%) diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-approve.yml similarity index 62% rename from .github/workflows/dependabot-auto-merge.yml rename to .github/workflows/dependabot-auto-approve.yml index d52be3b9..ba7d0bd6 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-approve.yml @@ -1,4 +1,4 @@ -name: Dependabot auto-approve and merge +name: Dependabot auto-approve on: pull_request permissions: @@ -15,14 +15,8 @@ jobs: with: github-token: "${{ secrets.GITHUB_TOKEN }}" - - name: Approve a PR + - name: Approve PR run: gh pr review --approve "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - - name: Enable auto-merge for Dependabot PRs - run: gh pr merge --auto --merge "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}