diff --git a/.github/scripts/create-tag.sh b/.github/scripts/create-tag.sh index fc7e11d2db..234905e944 100644 --- a/.github/scripts/create-tag.sh +++ b/.github/scripts/create-tag.sh @@ -37,9 +37,9 @@ fi # check the tag format (need manual update when necessary) format=BABEL_ -if ! [[ "$new" =~ "$format"[0-9]_[0-9]_[0-9] ]] +if ! [[ "$new" =~ "$format"[0-9]_[0-9]+_[0-9] ]] then - echo "Error: Invalid tag prefix, expected: ${format}__" + echo "Error: Invalid tag prefix, expected: ${format}__" exit 1 fi