From ab6a9567667c1de93732c64c4c655729613bcee1 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Thu, 13 Mar 2025 08:46:48 -0700 Subject: [PATCH] use hmarr autoapprove action --- .github/workflows/dependabot-auto-merge.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 8e7d0ab09..6ee7c372f 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -22,11 +22,15 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} - # use admin to bypass the need for approval, human PRs still need two approvals + - name: Auto-approve dependabot PR + uses: hmarr/auto-approve-action@v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Enable auto-merge for minor updates if: steps.metadata.outputs.update-type == 'version-update:semver-minor' run: | - gh pr merge --squash --admin "$PR_URL" + gh pr merge --auto --squash "$PR_URL" env: PR_URL: ${{ github.event.pull_request.html_url }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}