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 14, 2024
1 parent 0fdaaa8 commit 06568c3
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 06568c3

Please sign in to comment.