From d5574e01c053c09384d73782d1efc086d4953dd4 Mon Sep 17 00:00:00 2001 From: Christian Preston Date: Mon, 29 Jan 2024 12:26:30 -0500 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a65bb1e..dc33e6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,3 +28,20 @@ jobs: run: pnpm publish -q --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + dependabot: + name: 'Dependabot' + needs: [ci] + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}} + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v1.3.1 + 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 }}