mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
[BE] Use version.txt to determine version of nightly builds (#115794)
Fixes TODO from https://github.com/pytorch/pytorch/pull/33326 Test plan: check version generated by CI: - https://github.com/pytorch/pytorch/actions/runs/7202798334/job/19621620744?pr=115794#step:9:64 - https://github.com/pytorch/pytorch/actions/runs/7202798329/job/19621639791?pr=115794#step:11:104 Pull Request resolved: https://github.com/pytorch/pytorch/pull/115794 Approved by: https://github.com/atalman
This commit is contained in:
parent
661c1cf2aa
commit
5e615f5f3a
1 changed files with 1 additions and 2 deletions
|
|
@ -58,8 +58,7 @@ fi
|
|||
PIP_UPLOAD_FOLDER='nightly/'
|
||||
# We put this here so that OVERRIDE_PACKAGE_VERSION below can read from it
|
||||
export DATE="$(date -u +%Y%m%d)"
|
||||
#TODO: We should be pulling semver version from the base version.txt
|
||||
BASE_BUILD_VERSION="2.2.0.dev$DATE"
|
||||
BASE_BUILD_VERSION="$(cat ${PYTORCH_ROOT}/version.txt|cut -da -f1).dev${DATE}"
|
||||
# Change BASE_BUILD_VERSION to git tag when on a git tag
|
||||
# Use 'git -C' to make doubly sure we're in the correct directory for checking
|
||||
# the git tag
|
||||
|
|
|
|||
Loading…
Reference in a new issue