standardize version regex in release pipeline (#1124)

This commit is contained in:
Jonathan Wren 2020-12-19 15:07:45 -08:00
parent 3dec22651e
commit 2e9e857b7b
No known key found for this signature in database
GPG key ID: 43D5FF8722E7F68A
2 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ jobs:
if [[ $GITHUB_REF =~ ^refs/tags/ ]]; then
# This is a tag build (i.e. a release)
echo '::debug::Release build'
if [[ ! $BRANCH =~ ^v[0-9]+(\.[0-9]+){1,2}(-(alpha|beta)(\.[0-9]+)?)?$ ]]; then
if [[ ! $BRANCH =~ ^v[0-9]+(\.[0-9]+){1,2}(-(alpha|beta)([0-9]+)?)?$ ]]; then
echo "::error::Invalid tag format: ${BRANCH}"
exit 1
fi