We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9c889c commit 12757f8Copy full SHA for 12757f8
.github/workflows/_helm.yml
@@ -28,10 +28,10 @@ jobs:
28
env:
29
VERSION: "${{ github.ref_name }}"
30
run: |
31
- if [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-alpha|-beta|-rc).*?$ ]]; then
32
- echo "Valid version format: ${VERSION}"
+ if [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+((-alpha|-beta|-rc)\.[0-9]+)?$ ]]; then
+ echo "Valid version format: `${VERSION}`"
33
else
34
- echo "Invalid version: ${VERSION}. Expected: X.Y.Z or X.Y.Z-beta.1 or X.Y.Z-alpha.1"
+ echo "Invalid version: `${VERSION}`. Expected: `X.Y.Z` or `X.Y.Z-beta.1` or `X.Y.Z-alpha.1`"
35
exit 1
36
fi
37
0 commit comments