From 4370617f09eb9c4cde8cc5cdfc75286d924e632f Mon Sep 17 00:00:00 2001 From: skidoodle Date: Fri, 15 Dec 2023 08:25:47 +0100 Subject: [PATCH] Create dependabot-autoapprove.yml --- .github/workflows/dependabot-autoapprove.yml | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/dependabot-autoapprove.yml diff --git a/.github/workflows/dependabot-autoapprove.yml b/.github/workflows/dependabot-autoapprove.yml new file mode 100644 index 0000000..9fd7ecc --- /dev/null +++ b/.github/workflows/dependabot-autoapprove.yml @@ -0,0 +1,21 @@ +name: Dependabot auto-approve +on: pull_request + +permissions: + pull-requests: write + +jobs: + dependabot: + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v1 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - name: Approve a PR + run: gh pr review --approve "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}