From 0ad4739f4ca75ece9ddcc5d05430b6652d415c1d Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Wed, 28 May 2025 09:20:21 +0200 Subject: [PATCH] Ignore unmaintained branches when merging up for Go --- golang/pre-publish/action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/golang/pre-publish/action.yml b/golang/pre-publish/action.yml index c1cc728..2315f8a 100644 --- a/golang/pre-publish/action.yml +++ b/golang/pre-publish/action.yml @@ -7,6 +7,9 @@ inputs: push_changes: description: Whether to push the changes default: "true" + ignored_branches: + description: Branches to ignore when merging up changes + required: true runs: using: composite @@ -25,12 +28,13 @@ runs: - name: "Determine branch to merge up to" if: ${{ inputs.push_changes }} id: get-next-branch - uses: alcaeus/automatic-merge-up-action/get-next-branch@b253eae7dfccc0b637edf71121608375e07a7678 #main + uses: alcaeus/automatic-merge-up-action/get-next-branch@a43d2c2d3ed5a92a1fce3e3bde21c27c578f50d3 #1.0.0 with: ref: ${{ github.ref_name }} branchNamePattern: 'release/.' devBranchNamePattern: 'v' fallbackBranch: 'master' + ignoredBranches: ${{ inputs.ignored_branches }} - name: "Manually merge up changes" if: ${{ inputs.push_changes && steps.get-next-branch.outputs.hasNextBranch }} shell: bash