From 1a3f319d36a5de44985c405837cb3daebed52bee Mon Sep 17 00:00:00 2001 From: "Thomas.G" Date: Fri, 3 Jan 2025 12:18:36 +0100 Subject: [PATCH] ci: automatically merge dependabot PR (#94) --- .github/workflows/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 998a0ca..186a11c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,3 +30,17 @@ jobs: run: npm install - name: Run tests run: npm run test + automerge: + if: > + github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]' + needs: + - test + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Merge Dependabot PR + uses: fastify/github-action-merge-dependabot@c3bde0759d4f24db16f7b250b2122bc2df57e817 # v3.11.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }}