This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a commit to branch users/damccorm/script-cp
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/users/damccorm/script-cp by
this push:
new 350a49a1ad7 Perform correct release version validation (#34378)
350a49a1ad7 is described below
commit 350a49a1ad72371b8dc108d31b75527ec8b82b00
Author: Danny McCormick <[email protected]>
AuthorDate: Fri Mar 21 11:07:11 2025 -0400
Perform correct release version validation (#34378)
---
release/src/main/scripts/set_version.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/release/src/main/scripts/set_version.sh
b/release/src/main/scripts/set_version.sh
index 0244d047141..082786c5946 100755
--- a/release/src/main/scripts/set_version.sh
+++ b/release/src/main/scripts/set_version.sh
@@ -69,8 +69,8 @@ if [[ -z $TARGET_VERSION ]] ; then
exit 1
fi
-if ! [[ ${RELEASE} =~ ([0-9]+\.[0-9]+) ]];
- then echo "The input for RELEASE does not match a valid format
[0-9]+\.[0-9]+"
+if ! [[ ${TARGET_VERSION} =~ ([0-9]+\.[0-9]+\.[0-9]+) ]];
+ then echo "The input for TARGET_VERSION: ${TARGET_VERSION} does not match a
valid format [0-9]+\.[0-9]+\.[0-9]+"
exit 1
fi