Skip to content

Commit c4a287d

Browse files
dougysterJohn Doe
authored andcommitted
fix: ensuring nightly whls are tagged with latest commit (sgl-project#18204)
1 parent b57f94b commit c4a287d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release-pypi-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
# If building at exact tag (distance=0), force dev0 version for unique wheel names
6363
if [ "$DIST" = "0" ]; then
6464
TAG=$(echo "$DESC" | cut -d- -f1)
65-
HASH=$(echo "$DESC" | cut -d- -f3-)
65+
HASH="g$(git rev-parse --short HEAD)"
6666
FORCE_VERSION="${TAG#v}.dev0+${HASH}"
6767
echo "Building at exact tag, forcing version to: $FORCE_VERSION"
6868
export SETUPTOOLS_SCM_PRETEND_VERSION="$FORCE_VERSION"

0 commit comments

Comments
 (0)