Skip to content

Commit

Permalink
Fixed the version check regex to allow major versions > 9 (#7352)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardola authored Oct 11, 2023
1 parent 28df3ba commit e115e39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/version-check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ runs:
TRIMMED_VERSION=$(echo "$VERSION" | xargs)
if ${{ env.IS_PRERELEASE == 'true' }}; then
VERSION_FORMAT="^[0-9]\.[0-9]\.[0-9]-test-[1-9]$"
VERSION_FORMAT="^[0-9]+\.[0-9]\.[0-9]+-test-[1-9]$"
else
VERSION_FORMAT="^[0-9]\.[0-9]\.[0-9]$"
VERSION_FORMAT="^[0-9]+\.[0-9]\.[0-9]+$"
fi
if [[ $TRIMMED_VERSION =~ $VERSION_FORMAT ]]; then
Expand Down
4 changes: 4 additions & 0 deletions changelog/fix-major-version-check
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

Fixed version check regex

0 comments on commit e115e39

Please sign in to comment.