Skip to content

Commit

Permalink
Fix release regex (#1924)
Browse files Browse the repository at this point in the history
# Goal
The goal of this PR is to fix the release regex which had a bug meaning
1-9 values were not possible.
  • Loading branch information
wilwade authored Mar 21, 2024
1 parent 22ad694 commit 9b948d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: |
version=${{env.NEW_RELEASE_TAG_FROM_UI}}
echo "Release version entered in UI: $version"
regex='^v([0-9]+)\.(0|([1-9][0-9]+))\.(0|([1-9][0-9]+))(-rc[1-9][0-9]*)?$'
regex='^v([0-9]+)\.(0|([1-9][0-9]*))\.(0|([1-9][0-9]*))(-rc[1-9][0-9]*)?$'
if [[ ! $version =~ $regex ]]; then
echo "ERROR: Entered version $version is not valid."
echo "Please use v#.#.#[-rc#] format."
Expand Down

0 comments on commit 9b948d7

Please sign in to comment.