From 1e63d0447d7ced6fdc1a7357be22175eb867c9d9 Mon Sep 17 00:00:00 2001 From: Tang Rufus Date: Tue, 3 Dec 2024 14:51:55 +0000 Subject: [PATCH] Dependabot auto-merge non-major PRs on current repo --- .github/workflows/dependabot-auto-merge.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index bce673a..c4ec5e0 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -15,7 +15,7 @@ permissions: jobs: dependabot: runs-on: ubuntu-latest - if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'typisttech/wordfence' + if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'typisttech/wordfence-api' steps: - name: Dependabot metadata id: metadata @@ -23,7 +23,7 @@ jobs: with: github-token: "${{ secrets.GITHUB_TOKEN }}" - name: Enable auto-merge for Dependabot PRs - if: steps.metadata.outputs.update-type == 'version-update:semver-minor' + if: steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' run: gh pr merge --auto --merge "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}}