From 58b4559491a469534a4605ea72eda9012ad00810 Mon Sep 17 00:00:00 2001 From: Dark Dragon Date: Sun, 25 Aug 2024 11:19:14 +0000 Subject: [PATCH] Enable auto-approve for dependabot PRs --- .github/workflows/dependabot.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index 3382afb51..70663cf3f 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -54,6 +54,18 @@ jobs: # Do not overwrite in case our version is outdated push_options: "--force-with-lease" + auto-approve: + if: github.actor == 'dependabot[bot]' + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Auto approve Dependabot PRs + run: gh pr review --approve "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GH_TOKEN: ${{secrets.GITHUB_TOKEN}} + auto-merge: if: github.actor == 'dependabot[bot]' runs-on: ubuntu-latest