Skip to content

Commit 0ad4739

Browse files
committed
Ignore unmaintained branches when merging up for Go
1 parent 9455ec6 commit 0ad4739

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

golang/pre-publish/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ inputs:
77
push_changes:
88
description: Whether to push the changes
99
default: "true"
10+
ignored_branches:
11+
description: Branches to ignore when merging up changes
12+
required: true
1013

1114
runs:
1215
using: composite
@@ -25,12 +28,13 @@ runs:
2528
- name: "Determine branch to merge up to"
2629
if: ${{ inputs.push_changes }}
2730
id: get-next-branch
28-
uses: alcaeus/automatic-merge-up-action/get-next-branch@b253eae7dfccc0b637edf71121608375e07a7678 #main
31+
uses: alcaeus/automatic-merge-up-action/get-next-branch@a43d2c2d3ed5a92a1fce3e3bde21c27c578f50d3 #1.0.0
2932
with:
3033
ref: ${{ github.ref_name }}
3134
branchNamePattern: 'release/<major>.<minor>'
3235
devBranchNamePattern: 'v<major>'
3336
fallbackBranch: 'master'
37+
ignoredBranches: ${{ inputs.ignored_branches }}
3438
- name: "Manually merge up changes"
3539
if: ${{ inputs.push_changes && steps.get-next-branch.outputs.hasNextBranch }}
3640
shell: bash

0 commit comments

Comments
 (0)