From ec0cfd16edcc6bccfc4a29053521c05cf6ee46e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Ga=C5=82ek?= Date: Wed, 17 Apr 2024 16:15:46 +0200 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64b33d9..9664821 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,3 +21,18 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm ci - run: npm test + dependabot: + runs-on: ubuntu-latest + if: ${{ github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' }} + needs: build + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v2.0.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - name: Enable auto-merge for Dependabot PRs + run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}