From fe99ede112ec7128de2a1b3c00f16410f1435d1a Mon Sep 17 00:00:00 2001 From: fraxken Date: Fri, 3 Jan 2025 12:18:07 +0100 Subject: [PATCH] ci: automatically merge dependabot PR --- .github/workflows/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 202a022..7a43058 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,6 +46,20 @@ 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 }} nsci: runs-on: ubuntu-latest strategy: