Skip to content

Commit a5da4e5

Browse files
theakshaypanttekton-robot
authored andcommitted
ci(bump-payload): anchor regex in bump-payload branch filter
The release-* glob in git ls-remote matched branches with "release-" anywhere in their path, causing dependabot and bot-bump-payload branches to enter the build matrix and open spurious PRs. Add a positive anchored grep to keep only branches starting with release-v and anchor the negative filter patterns as well. Signed-off-by: Akshay Pant <akpant@redhat.com>
1 parent f5445c3 commit a5da4e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/bump-payload-on-releases.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- id: set-matrix
1818
run: |
19-
SUPPORTED_BRANCHES=$(git ls-remote --heads https://github.com/tektoncd/operator 'release-*' | grep -v 'v0.2[0-9].*\|v0.5[0-9]\.*\|v0.6[0-7]\.*' | awk '{ print $2 }' | cut -d/ -f3- | jq -cRs 'split("\n")[:-1]')
19+
SUPPORTED_BRANCHES=$(git ls-remote --heads https://github.com/tektoncd/operator 'release-*' | awk '{ print $2 }' | cut -d/ -f3- | grep '^release-v[0-9]\+\.[0-9]\+' | grep -v '^release-v0\.2[0-9]\|^release-v0\.5[0-9]\|^release-v0\.6[0-7]' | jq -cRs 'split("\n")[:-1]')
2020
echo "Supported Branches: ${SUPPORTED_BRANCHES}"
2121
echo "branches=${SUPPORTED_BRANCHES}" >> $GITHUB_OUTPUT
2222
outputs:

0 commit comments

Comments
 (0)