We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccaac85 commit 311b6b0Copy full SHA for 311b6b0
.github/workflows/RollPyTorch.yml
@@ -68,7 +68,7 @@ jobs:
68
printf -- "-f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html\n--pre\ntorchvision==%s\n" "${VISION_RELEASE}" > torchvision-requirements.txt
69
70
# Read the commit hash from the downloaded whl file without extracting it
71
- PT_HASH=$(unzip -p torch-"${PT_RELEASE}"*.whl torch/version.py | grep git_version | awk '{ print $3 }' | tr -d "'")
+ PT_HASH=$(unzip -p torch-"${PT_RELEASE}"*.whl torch/version.py | grep git_version | tail -1 | awk '{ print $3 }' | tr -d "'")
72
echo "Found torch commit hash ${PT_HASH}"
73
74
PT_HASH_CHANGED=0
0 commit comments