Skip to content

Commit 014e77d

Browse files
authored
Perform correct release version validation (#34378) (#34400)
1 parent efe443d commit 014e77d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

release/src/main/scripts/set_version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ if [[ -z $TARGET_VERSION ]] ; then
6969
exit 1
7070
fi
7171

72-
if ! [[ ${RELEASE} =~ ([0-9]+\.[0-9]+) ]];
73-
then echo "The input for RELEASE does not match a valid format [0-9]+\.[0-9]+"
72+
if ! [[ ${TARGET_VERSION} =~ ([0-9]+\.[0-9]+\.[0-9]+) ]];
73+
then echo "The input for TARGET_VERSION: ${TARGET_VERSION} does not match a valid format [0-9]+\.[0-9]+\.[0-9]+"
7474
exit 1
7575
fi
7676

0 commit comments

Comments
 (0)