From 3e9944c9f5f21c7257c8c1cdaa15533058100d76 Mon Sep 17 00:00:00 2001 From: "Thomas.G" Date: Thu, 28 Mar 2024 21:30:27 +0100 Subject: [PATCH] ci(nodejs): automatically merge dependabot PR (#186) --- .github/workflows/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9916c42..a482a80 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,3 +30,17 @@ jobs: run: npm ci - 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@9e7bfb249c69139d7bdcd8d984f9665edd49020b # v3.10.1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }}