Skip to content

Commit 06e93ec

Browse files
committed
Parse just the version tag
1 parent 05560ba commit 06e93ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/gh-publish.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ jobs:
6868
- name: Extract main sha tag
6969
id: main_sha
7070
run: |
71-
echo "tag=$(echo '${{ steps.meta.outputs.tags }}' | grep '^.*:new-pipeline-')" >> $GITHUB_OUTPUT
71+
# Find the line with `:main-...`
72+
full_line="$(echo '${{ steps.meta.outputs.tags }}' | grep ':new-pipeline-')"
73+
# Strip everything before the last :
74+
tag="${full_line##*:}"
75+
echo "tag=$tag" >> $GITHUB_OUTPUT
7276
- uses: azure/setup-helm@v3.5
7377
- run: |
7478
helm upgrade --install -n cms cms deployment/ -f deployment/prod-values.yaml --set image.tag=${{ steps.main_sha.outputs.tag }}

0 commit comments

Comments
 (0)