From f4fcad366bb63cb7d60f3bbf3979175c93ca947f Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Fri, 2 Dec 2022 10:29:56 +0100 Subject: [PATCH] CI: update signalling (#15887) --- .github/workflows/legacy-checkpoints.yml | 3 +-- .github/workflows/release-pypi.yml | 12 +++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/legacy-checkpoints.yml b/.github/workflows/legacy-checkpoints.yml index 5e08455d22c8f..0531f2e72c957 100644 --- a/.github/workflows/legacy-checkpoints.yml +++ b/.github/workflows/legacy-checkpoints.yml @@ -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 != '' diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index ba7f18341ac01..3e01ca51898eb 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -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 @@ -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: @@ -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 }}