From 254845b9f222a8497df53a6eeb828a7936dcc24c Mon Sep 17 00:00:00 2001 From: Newton Der Date: Mon, 8 Dec 2025 10:53:48 -0800 Subject: [PATCH] Allow for release candidate version numbers like x.y.z-rc.N --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 971445f..506d8dc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,8 +22,8 @@ jobs: - name: Validate tag run: | - if ! echo "$VERSION_NUM" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+$'; then - echo "Tag $VERSION_NUM does not follow semantic version pattern (x.y.z). Skipping release." + if ! echo "$VERSION_NUM" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)?$'; then + echo "Tag $VERSION_NUM does not follow semantic version pattern (x.y.z or x.y.z-rc.N). Skipping release." exit 78 # neutral exit code fi echo "Tag $VERSION_NUM follows valid semantic version pattern"