From 5d6d111e19bf92dd54421a39f06a3f8f4bbc8296 Mon Sep 17 00:00:00 2001 From: Brandon Pitman Date: Wed, 20 Sep 2023 15:33:52 -0700 Subject: [PATCH] Enable automerge of dependabot PRs. (#1968) --- .github/workflows/dependabot-automerge.yml | 13 +++++++++++++ 1 file changed, 13 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 000000000..a8af4e7f7 --- /dev/null +++ b/.github/workflows/dependabot-automerge.yml @@ -0,0 +1,13 @@ +name: Dependabot auto-merge +on: pull_request + +jobs: + dependabot: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - name: Approve & enable auto-merge for Dependabot PRs + run: gh pr review --approve -b "Auto-approving dependabot PR." "$PR_URL" && gh pr merge --auto --squash "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.DIVVIUP_GITHUB_AUTOMATION_DEPENDABOT_APPROVER_PAT}}