From f23d20b642f6ede77beff68ab0d3fcb967eeda68 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Wed, 15 Apr 2026 09:43:08 -0700 Subject: [PATCH] Update merge bot workflow for GitHub Actions integration (#122) Enhance the merge conditions to include updates for GitHub Actions while excluding major version NuGet updates to prevent potential breaking changes. --- .github/workflows/merge-bot-pull-request.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/merge-bot-pull-request.yml b/.github/workflows/merge-bot-pull-request.yml index 39c1a65..a24543a 100644 --- a/.github/workflows/merge-bot-pull-request.yml +++ b/.github/workflows/merge-bot-pull-request.yml @@ -26,8 +26,13 @@ jobs: with: github-token: "${{ secrets.GITHUB_TOKEN }}" + # Merge if either condition is true: + # Non-NuGet ecosystems (e.g. github-actions) allow all updates including major (e.g. v2->v3) + # NuGet allows only minor and patch updates, skipping major as they may contain breaking changes - name: Merge pull request step - if: steps.metadata.outputs.update-type != 'version-update:semver-major' + if: >- + (steps.metadata.outputs.package-ecosystem != 'nuget') || + (steps.metadata.outputs.update-type != 'version-update:semver-major') run: gh pr merge --auto --squash "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}}