From a6e63c2d50092497952cdb5067d85a844abe6939 Mon Sep 17 00:00:00 2001 From: Sanjit Bhat Date: Sun, 14 Jul 2024 19:26:56 -0400 Subject: [PATCH] auto-merge dependabot PRs --- .github/workflows/dependabot-automerge.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/dependabot-automerge.yml diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml new file mode 100644 index 0000000..2190146 --- /dev/null +++ b/.github/workflows/dependabot-automerge.yml @@ -0,0 +1,16 @@ +name: Dependabot auto-merge +on: pull_request + +permissions: + contents: write + +jobs: + dependabot-automerge: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GH_TOKEN: ${{ github.token }} + steps: + - name: merge + run: gh pr merge --auto --merge --delete-branch "$PR_URL"