From 85d1d0973bfed5c60f6e19681c88afef80d730d5 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Tue, 16 Apr 2024 17:30:58 -0700 Subject: [PATCH] Create dependabot-automerge.yml (#1879) --- .github/workflows/dependabot-automerge.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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 0000000000..8a0cd098c2 --- /dev/null +++ b/.github/workflows/dependabot-automerge.yml @@ -0,0 +1,20 @@ +name: Dependabot Automerge +on: pull_request + +permissions: + contents: write + +jobs: + dependabot-automerge: + runs-on: ubuntu-latest + env: + PR_URL: ${{github.event.pull_request.html_url}} + GH_TOKEN: ${{ github.token }} + steps: + - name: describe for '${{ github.event.pull_request.title }}' + run: | + printf "github.actor == '%s'\n" "${{ github.actor }}" + - name: merge + run: gh pr merge --auto --squash --delete-branch "$PR_URL" + if: ${{ github.actor == 'dependabot[bot]' + }}