From 91d81919cdfda25e7914588b6bcc680c177afeb9 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Sat, 13 Apr 2024 08:08:31 -0700 Subject: [PATCH] Create dependabot-automerge.yml (#1861) --- .github/workflows/dependabot-automerge.yml | 17 +++++++++++++++++ 1 file changed, 17 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..f9775c4a92 --- /dev/null +++ b/.github/workflows/dependabot-automerge.yml @@ -0,0 +1,17 @@ +name: Dependabot Automerge +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}} + steps: + #- name: approve + # run: gh pr review --approve "$PR_URL" + - name: merge + run: gh pr merge --auto --squash --delete-branch "$PR_URL"