Skip to content

Commit

Permalink
CI: update signalling (#15887)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Dec 2, 2022
1 parent fee52f9 commit f4fcad3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/legacy-checkpoints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ jobs:
- name: Install PL version
run: |
pip install "pytorch-lightning==${{ inputs.pl_version }}" \
-f https://download.pytorch.org/whl/cpu/torch_stable.html \
--extra-index-url https://test.pypi.org/simple/
-f https://download.pytorch.org/whl/cpu/torch_stable.html
pip list
if: inputs.pl_version != ''

Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/release-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ defaults:
run:
shell: bash

env:
PUBLISH: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}

jobs:
init:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -89,7 +92,7 @@ jobs:

signaling:
runs-on: ubuntu-20.04
needs: [release-version, pre-publish-packages]
needs: [release-version]
env:
TAG: ${{ needs.release-version.outputs.tag }}
steps:
Expand Down Expand Up @@ -194,12 +197,11 @@ jobs:
pypi-token: ${{ secrets.PYPI_TOKEN_LAI }}

legacy-checkpoints:
needs: [release-version, pre-publish-packages]
needs: [build-packages]
uses: ./.github/workflows/legacy-checkpoints.yml
with:
push_to_s3: true
create_pr: true
pl_version: ${{ needs.release-version.outputs.tag }}
push_to_s3: ${{ env.PUBLISH }}
create_pr: ${{ env.PUBLISH }}
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_KEY_ID: ${{ secrets.AWS_SECRET_KEY_ID }}

0 comments on commit f4fcad3

Please sign in to comment.