This is an automated email from the ASF dual-hosted git repository.

zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git


The following commit(s) were added to refs/heads/master by this push:
     new baf71c5f fix script (#730)
baf71c5f is described below

commit baf71c5ffa9097eda386d7b5c9a294cabb03b68f
Author: Jian Zhong <[email protected]>
AuthorDate: Tue Jun 17 23:29:55 2025 +0800

    fix script (#730)
---
 release/downloadDubboCandidate.sh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/release/downloadDubboCandidate.sh 
b/release/downloadDubboCandidate.sh
index 7f553008..240201df 100644
--- a/release/downloadDubboCandidate.sh
+++ b/release/downloadDubboCandidate.sh
@@ -27,9 +27,11 @@ fi
 
 # Determine the latest Dubbo version by version number ignoring alpha, beta, 
and rc versions.
 if [ "${DUBBO_VERSION}" = "" ] ; then
-  DUBBO_VERSION="$(curl -sL  
https://github.com/apache/dubbo-kubernetes/releases | \
-                  grep -E -o 'dubbo/([v,V]?)[0-9]*.[0-9]*.[0-9]*' | sort -V | \
-                  tail -1 | awk -F'/' '{ print $2}')"
+  DUBBO_VERSION="$(curl -s 
https://api.github.com/repos/apache/dubbo-kubernetes/releases | \
+                       grep '"tag_name":' | \
+                       grep -vE '(alpha|beta|rc)' | \
+                       head -1 | \
+                       sed -E 's/.*"([^"]+)".*/\1/')"
   DUBBO_VERSION="${DUBBO_VERSION##*/}"
 fi
 

Reply via email to