File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 8080 - name : Install PL version
8181 run : |
8282 pip install "pytorch-lightning==${{ inputs.pl_version }}" \
83- -f https://download.pytorch.org/whl/cpu/torch_stable.html \
84- --extra-index-url https://test.pypi.org/simple/
83+ -f https://download.pytorch.org/whl/cpu/torch_stable.html
8584 pip list
8685 if : inputs.pl_version != ''
8786
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ defaults:
1111 run :
1212 shell : bash
1313
14+ env :
15+ PUBLISH : ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
16+
1417jobs :
1518 init :
1619 runs-on : ubuntu-20.04
8992
9093 signaling :
9194 runs-on : ubuntu-20.04
92- needs : [release-version, pre-publish-packages ]
95+ needs : [release-version]
9396 env :
9497 TAG : ${{ needs.release-version.outputs.tag }}
9598 steps :
@@ -194,12 +197,11 @@ jobs:
194197 pypi-token : ${{ secrets.PYPI_TOKEN_LAI }}
195198
196199 legacy-checkpoints :
197- needs : [release-version, pre-publish -packages]
200+ needs : [build -packages]
198201 uses : ./.github/workflows/legacy-checkpoints.yml
199202 with :
200- push_to_s3 : true
201- create_pr : true
202- pl_version : ${{ needs.release-version.outputs.tag }}
203+ push_to_s3 : ${{ env.PUBLISH }}
204+ create_pr : ${{ env.PUBLISH }}
203205 secrets :
204206 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
205207 AWS_SECRET_KEY_ID : ${{ secrets.AWS_SECRET_KEY_ID }}
You can’t perform that action at this time.
0 commit comments