This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new a5281ddec07 Perform correct release version validation (#34378)
a5281ddec07 is described below
commit a5281ddec07cbb468bfc3b656f2ee0e7652fe799
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