Skip to content

Commit 12757f8

Browse files
authored
Fix helm tag check to allow non-beta tags (#203)
1 parent c9c889c commit 12757f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/_helm.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
env:
2929
VERSION: "${{ github.ref_name }}"
3030
run: |
31-
if [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-alpha|-beta|-rc).*?$ ]]; then
32-
echo "Valid version format: ${VERSION}"
31+
if [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+((-alpha|-beta|-rc)\.[0-9]+)?$ ]]; then
32+
echo "Valid version format: `${VERSION}`"
3333
else
34-
echo "Invalid version: ${VERSION}. Expected: X.Y.Z or X.Y.Z-beta.1 or X.Y.Z-alpha.1"
34+
echo "Invalid version: `${VERSION}`. Expected: `X.Y.Z` or `X.Y.Z-beta.1` or `X.Y.Z-alpha.1`"
3535
exit 1
3636
fi
3737

0 commit comments

Comments
 (0)