[Chore] Move version tag helper to release scripts (#35196)

This commit is contained in:
Lianmin Zheng
2026-08-18 00:11:12 -07:00
committed by GitHub
parent 5b60b7c651
commit a779a2a2a5
15 changed files with 17 additions and 17 deletions
@@ -41,7 +41,7 @@ jobs:
id: version
run: |
# Use the shared helper so stable/post releases sort above rc tags.
VERSION=$(python3 python/tools/get_version_tag.py --tag-only | sed 's/^v//')
VERSION=$(python3 scripts/release/get_version_tag.py --tag-only | sed 's/^v//')
if [ -z "$VERSION" ]; then
echo "::error::Could not determine version from git tags"
@@ -189,7 +189,7 @@ jobs:
# id: version
# run: |
# # Use the shared helper so stable/post releases sort above rc tags.
# VERSION=$(python3 python/tools/get_version_tag.py --tag-only | sed 's/^v//')
# VERSION=$(python3 scripts/release/get_version_tag.py --tag-only | sed 's/^v//')
# if [ -z "$VERSION" ]; then
# echo "::error::Could not determine version from git tags"
@@ -50,7 +50,7 @@ jobs:
id: version
run: |
# Use the shared helper so stable/post releases sort above rc tags.
VERSION=$(python3 python/tools/get_version_tag.py --tag-only | sed 's/^v//')
VERSION=$(python3 scripts/release/get_version_tag.py --tag-only | sed 's/^v//')
if [ -z "$VERSION" ]; then
echo "::error::Could not determine version from git tags"
@@ -50,7 +50,7 @@ jobs:
id: version
run: |
# Use the shared helper so stable/post releases sort above rc tags.
VERSION=$(python3 python/tools/get_version_tag.py --tag-only | sed 's/^v//')
VERSION=$(python3 scripts/release/get_version_tag.py --tag-only | sed 's/^v//')
if [ -z "$VERSION" ]; then
echo "::error::Could not determine version from git tags"
+1 -1
View File
@@ -54,7 +54,7 @@ jobs:
cd python
cp ../README.md ../LICENSE .
TAG=$(python3 ../python/tools/get_version_tag.py)
TAG=$(python3 ../scripts/release/get_version_tag.py)
HASH="g$(git rev-parse --short HEAD)"
BUILD_DATE=$(date -u +%Y%m%d)
+1 -1
View File
@@ -34,7 +34,7 @@ jobs:
- name: Generate PR wheel version
id: gen_version
run: |
LATEST_TAG=$(python3 python/tools/get_version_tag.py)
LATEST_TAG=$(python3 scripts/release/get_version_tag.py)
BASE_VERSION=${LATEST_TAG#v}
echo "Latest release tag: ${LATEST_TAG}"