Skip to content

Commit

Permalink
chore: Only auto merge patch & minor version changes (#1343)
Browse files Browse the repository at this point in the history
  • Loading branch information
benscobie authored Nov 5, 2024
1 parent 5bab5d9 commit 68741c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dependabot_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Enable auto-merge for Dependabot PRs
if: ${{ contains(github.event.pull_request.title, 'bump')}}
if: ${{ contains(github.event.pull_request.title, 'bump')}} && (steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' || steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor')
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
Expand Down

0 comments on commit 68741c5

Please sign in to comment.