Skip to content

Commit 6cd4474

Browse files
authored
Update versioning schema (#18)
1 parent 3d329d3 commit 6cd4474

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/poolside-nightly-build.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,12 @@ jobs:
9696
echo "SHA1=${{ env.SHA1 }}"
9797
echo "MAX_JOBS=${{ env.MAX_JOBS }}"
9898
echo "TORCH_CUDA_ARCH_LIST=${{ env.TORCH_CUDA_ARCH_LIST }}"
99-
DATE=$(date -u +%Y%m%d)
100-
echo "PYTORCH_BUILD_VERSION=${{ env.PYTORCH_BUILD_VERSION_PREFIX }}.$DATE"
99+
100+
BRANCH_NAME=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
101+
# https://packaging.python.org/en/latest/specifications/version-specifiers/
102+
VERSION=$(echo -n "${BRANCH_NAME/\//-}-${GITHUB_SHA:0:7}" | tr -C '[:alnum:].' '.')
103+
104+
echo "PYTORCH_BUILD_VERSION=${{ env.PYTORCH_BUILD_VERSION_PREFIX }}.$VERSION"
101105
} >> "$GITHUB_ENV"
102106
103107
- name: Checkout PyTorch

0 commit comments

Comments
 (0)