[AMD] Fix nightly version tag selection (#23644)

Co-authored-by: bingxche <bingxche@amd.com>
This commit is contained in:
YC Yen-Ching Tseng
2026-04-24 17:39:47 +08:00
committed by GitHub
co-authored by bingxche
parent b8d883398d
commit b060a5ccfd
4 changed files with 20 additions and 10 deletions
+2 -2
View File
@@ -6,8 +6,8 @@ SGLANG_VERSION="v0.5.5" # Default version, will be overridden if git tags are
# Fetch tags from origin to ensure we have the latest
if git fetch --tags origin; then
# Get the latest version tag sorted by version number (e.g., v0.5.7)
VERSION_FROM_TAG=$(git tag -l 'v[0-9]*' --sort=-v:refname | head -1)
# Use the shared helper so stable/post releases sort above rc tags.
VERSION_FROM_TAG=$(python3 python/tools/get_version_tag.py --tag-only || true)
if [ -n "$VERSION_FROM_TAG" ]; then
SGLANG_VERSION="$VERSION_FROM_TAG"
echo "Using SGLang version from git tags: $SGLANG_VERSION"
@@ -6,8 +6,8 @@ SGLANG_VERSION="v0.5.5" # Default version, will be overridden if git tags are
# Fetch tags from origin to ensure we have the latest
if git fetch --tags origin; then
# Get the latest version tag sorted by version number (e.g., v0.5.7)
VERSION_FROM_TAG=$(git tag -l 'v[0-9]*' --sort=-v:refname | head -1)
# Use the shared helper so stable/post releases sort above rc tags.
VERSION_FROM_TAG=$(python3 python/tools/get_version_tag.py --tag-only || true)
if [ -n "$VERSION_FROM_TAG" ]; then
SGLANG_VERSION="$VERSION_FROM_TAG"
echo "Using SGLang version from git tags: $SGLANG_VERSION"