From 355ee936081bf5158664f69efc55c31feb3e6089 Mon Sep 17 00:00:00 2001 From: zinduolis Date: Thu, 21 Nov 2024 15:10:22 +1000 Subject: [PATCH] Add enable auto merge to dependabot yml --- .github/workflows/dependabot-auto-merge.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 499e688211..250a0a6ffb 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -18,6 +18,13 @@ jobs: uses: dependabot/fetch-metadata@v2 with: github-token: "${{ secrets.GITHUB_TOKEN }}" + + - name: Enable Auto-Merge + run: gh pr merge --enable-auto-merge "$PR_URL" + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Enable auto-merge for Dependabot PRs if: success() && (steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch') run: gh pr merge --auto --merge "$PR_URL"