Skip to content

Commit

Permalink
ci: fix release version test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderzobnin committed Mar 5, 2019
1 parent 021473f commit 3428137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [ -z $RELEASE_VER ]; then
echo "No release version provided"
exit 1
fi
if [[ $RELEASE_VER =~ ^[0-9]\.[0-9]\.[0-9]-?.* ]]; then
if [[ $RELEASE_VER =~ ^[0-9]+(\.[0-9]+){2}(-.+|[^-.]*) ]]; then
echo "Preparing release $RELEASE_VER"
else
echo "Release should has format 1.2.3[-meta], got $RELEASE_VER"
Expand Down

0 comments on commit 3428137

Please sign in to comment.