From c5bc300eb4d0531267376f58f30cdcd7aba6a349 Mon Sep 17 00:00:00 2001 From: "Thomas.G" Date: Thu, 15 Aug 2024 16:03:42 +0200 Subject: [PATCH] ci: automatically merge dependabot PR (#208) --- .github/workflows/node.js.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index ed0c22b..067fb20 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.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@9e7bfb249c69139d7bdcd8d984f9665edd49020b # v3.10.1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }}