From 06568c3f98bf50bbb2cdbf720b0032da8d6872ca Mon Sep 17 00:00:00 2001 From: sanket Date: Fri, 9 Feb 2024 15:28:45 +0530 Subject: [PATCH] changes resolved --- .github/workflows/prepare-release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 53a6519c3ca..d8781cb50c6 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -27,12 +27,12 @@ jobs: - name: Validate version format run: | validate_version() { - local regex_pattern_beta='^[0-9]+\.[1-9][0-9]*\.[1-9][0-9]*$' - local regex_pattern_stable='^[1-9][0-9]*\.[0-9]+\.[0-9]+(-rcv[0-9]+)?$' + local regex_pattern_beta='^[0-9]+\.[0-9]+\.[0-9]+$' + local regex_pattern_stable='^[1-9][0-9]*\.[0-9]+\.[0-9]+$' if [[ ! "$1" =~ $regex_pattern_beta ]]; then if [[ ! "$1" =~ $regex_pattern_stable ]]; then - echo "Invalid $2 version format. For beta, it can be 0.1.0 or higher. For stable, Major version must be greater than 1, and it can have an optional RC version." + echo "Invalid $2 version format. For beta, it can be 0.1.0 or higher. For stable, Major version must be greater than 1." exit 1 fi fi