From 98002357205b62855c39c083d937e81bf694b617 Mon Sep 17 00:00:00 2001 From: "Thomas.G" Date: Fri, 3 Jan 2025 15:42:38 +0100 Subject: [PATCH] ci: automatically merge dependabot PR (#160) --- .github/workflows/node.js.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 5b91a10..3f28329 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -13,8 +13,7 @@ permissions: contents: read jobs: - build: - + test: runs-on: ubuntu-latest strategy: @@ -29,5 +28,19 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm ci - - run: npm run build --if-present + - run: npm run build - run: npm 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 }}