We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b74e57 commit c76de45Copy full SHA for c76de45
1 file changed
.github/workflows/merge-bot-pull-request.yml
@@ -26,8 +26,13 @@ jobs:
26
with:
27
github-token: "${{ secrets.GITHUB_TOKEN }}"
28
29
+ # Merge if either condition is true:
30
+ # Non-NuGet ecosystems (e.g. github-actions) allow all updates including major (e.g. v2->v3)
31
+ # NuGet allows only minor and patch updates, skipping major as they may contain breaking changes
32
- name: Merge pull request step
- if: steps.metadata.outputs.update-type != 'version-update:semver-major'
33
+ if: >-
34
+ (steps.metadata.outputs.package-ecosystem != 'nuget') ||
35
+ (steps.metadata.outputs.update-type != 'version-update:semver-major')
36
run: gh pr merge --auto --squash "$PR_URL"
37
env:
38
PR_URL: ${{github.event.pull_request.html_url}}
0 commit comments