From e0fcc1f6db39349dded5eb8d6723a74f4af5685a Mon Sep 17 00:00:00 2001 From: Gary Yendell Date: Wed, 3 Sep 2025 15:23:03 +0100 Subject: [PATCH] Fix helm tag check to allow non-beta tags --- .github/workflows/_helm.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_helm.yml b/.github/workflows/_helm.yml index ca1496f5a..d45927049 100644 --- a/.github/workflows/_helm.yml +++ b/.github/workflows/_helm.yml @@ -28,10 +28,10 @@ jobs: env: VERSION: "${{ github.ref_name }}" run: | - if [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-alpha|-beta|-rc).*?$ ]]; then - echo "Valid version format: ${VERSION}" + if [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+((-alpha|-beta|-rc)\.[0-9]+)?$ ]]; then + echo "Valid version format: `${VERSION}`" else - 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`" exit 1 fi