File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -78,16 +78,21 @@ jobs:
7878 - name : Checkout repository
7979 uses : actions/checkout@v4
8080
81- - name : Clone PyTorch
82- if : inputs.env_manager != 'base'
81+ - name : Get pinned PyTorch ref
8382 shell : bash --noprofile --norc -eo pipefail {0}
83+ if : inputs.env_manager != 'base' && inputs.ref == ''
8484 run : |
85- git clone --recursive https://github.com/pytorch/pytorch
86- cd pytorch
87- git checkout ${{ inputs.pytorch_ref }}
85+ PYTORCH_REF="$(<.github/pins/pytorch-upstream.txt)"
86+ echo "PYTORCH_REF=$PYTORCH_REF" | tee -a "$GITHUB_ENV"
8887
89- - name : Load conda cache
88+ - name : Clone PyTorch repository
9089 if : inputs.env_manager != 'base'
90+ uses : actions/checkout@v4
91+ with :
92+ repository : pytorch/pytorch
93+ ref : ${{ inputs.pytorch_ref || env.PYTORCH_REF }}
94+
95+ - name : Load conda cache
9196 id : conda-cache
9297 uses : ./.github/actions/load
9398 env :
You can’t perform that action at this time.
0 commit comments