Skip to content

Commit f4fcad3

Browse files
authored
CI: update signalling (#15887)
1 parent fee52f9 commit f4fcad3

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/legacy-checkpoints.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ jobs:
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

.github/workflows/release-pypi.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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+
1417
jobs:
1518
init:
1619
runs-on: ubuntu-20.04
@@ -89,7 +92,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)