From db1cb7b2799e4277429a9e945a99b63d23def4b2 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 28a0bad686e..ddd756ce775 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