Skip to content

Commit

Permalink
changes resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanket-0510 committed Feb 9, 2024
1 parent a5f525e commit db1cb7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db1cb7b

Please sign in to comment.