Skip to content

Commit aca4e11

Browse files
authored
Merge pull request #2938 from ayush17/fix-update-tags-regex-ea-pattern
fix: update update-tags.yaml regex to support EA naming pattern
2 parents ff91770 + d11488e commit aca4e11

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/update-tags.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: # yamllint disable-line rule:truthy
44
workflow_dispatch:
55
inputs:
66
new_tag:
7-
description: "Set a new image tag (e.g. YYYYx-vn.n)"
7+
description: "Set a new image tag (e.g. 3.4_ea1-v1.41 or 2025a-v1.41)"
88
required: true
99
jobs:
1010
update-tags:
@@ -24,7 +24,8 @@ jobs:
2424
id: replace
2525
run: |
2626
set -e
27-
regex="[0-9]{4}[a-z]-v[0-9]+\.[0-9]+"
27+
# Updated regex to match both old (2025a-v1.41) and new (3.4_ea1-v1.41) tag patterns
28+
regex="([0-9]{4}[a-z]|[0-9]+\.[0-9]+(_ea[0-9]+)?)-v[0-9]+\.[0-9]+"
2829
new_tag="${{ github.event.inputs.new_tag }}"
2930
3031
echo "Searching for tags in .tekton/*.yaml..."

0 commit comments

Comments
 (0)