[Chore] Move version tag helper to release scripts (#35196)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user