Skip to content

Commit c76de45

Browse files
authored
Update merge bot workflow for GitHub Actions integration (#122) (#123)
Enhance the merge conditions to include updates for GitHub Actions while excluding major version NuGet updates to prevent potential breaking changes.
1 parent 3b74e57 commit c76de45

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/merge-bot-pull-request.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@ jobs:
2626
with:
2727
github-token: "${{ secrets.GITHUB_TOKEN }}"
2828

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
2932
- name: Merge pull request step
30-
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')
3136
run: gh pr merge --auto --squash "$PR_URL"
3237
env:
3338
PR_URL: ${{github.event.pull_request.html_url}}

0 commit comments

Comments
 (0)