From c953eedaf01bfda68940a6b45f42d1ac49b21896 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Fri, 15 Dec 2023 11:02:03 -0500 Subject: [PATCH] SWI-3691 Update Release Regex --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cac6935..3f98be7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,10 +31,10 @@ jobs: - name: Set Release Version run: | RELEASE_VERSION=${GITHUB_REF#refs/tags/v} - if [[ $RELEASE_VERSION =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-(beta|alpha|rc))(\.[0-9][0-9]*)?$ ]]; then + if [[ $RELEASE_VERSION =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)?$ ]]; then echo "PACKAGE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV else - echo 'Tag does not match expected semver regex pattern (^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-(beta|alpha|rc))(\.[0-9][0-9]*)?$)' + echo 'Tag does not match expected semver regex pattern (^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)?$)' echo $RELEASE_VERSION echo 'Please update your tag to match the expected regex pattern' exit 1