From afea62bfd6f528c2e0a5d2d47e5608b79f660573 Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 16 Nov 2023 13:19:53 -0600 Subject: [PATCH] Add Dependabot automerge workflow --- .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 0000000..60d43ef --- /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 }} + GH_TOKEN: ${{ secrets.DIVVIUP_GITHUB_AUTOMATION_DEPENDABOT_APPROVER_PAT }}