From f0c239a6f6b71d12c57029082afcf3af8b508b79 Mon Sep 17 00:00:00 2001 From: Steven van Beelen Date: Tue, 28 Feb 2023 16:12:47 +0100 Subject: [PATCH] Allow auto merge for Dependabot PRs for all none major releases Switch the if-statement from allowing semver-patch only, to not allow semver-major releases. Doing so, we auto-merge dependabot pull requests for patch and minor releases, IF the JDK8, JDK11, and JDK17 builds are successful #dependency-upgrade/automation --- .github/workflows/dependabot-automation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot-automation.yml b/.github/workflows/dependabot-automation.yml index 8da4ffc..210f2c0 100644 --- a/.github/workflows/dependabot-automation.yml +++ b/.github/workflows/dependabot-automation.yml @@ -35,7 +35,7 @@ jobs: github-token: "${{ secrets.GITHUB_TOKEN }}" - name: Auto-merge Pull Request - if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}} + if: ${{steps.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}}