Skip to content

Commit

Permalink
Allow auto merge for Dependabot PRs for all none major releases
Browse files Browse the repository at this point in the history
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
  • Loading branch information
smcvb committed Feb 28, 2023
1 parent 107eda9 commit f0c239a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit f0c239a

Please sign in to comment.