diff --git a/.github/workflows/release_nightly_on_schedule.yml b/.github/workflows/release_nightly_on_schedule.yml index aab42e1d7..4125f333f 100644 --- a/.github/workflows/release_nightly_on_schedule.yml +++ b/.github/workflows/release_nightly_on_schedule.yml @@ -7,7 +7,7 @@ on: jobs: build-n-publish: - if: github.event_name == 'workflow_dispatch' || github.repository == 'hpcaitech/ColossalAI' + if: github.repository == 'hpcaitech/ColossalAI' name: Build and publish Python 🐍 distributions 📦 to PyPI runs-on: ubuntu-latest timeout-minutes: 20 @@ -31,9 +31,9 @@ jobs: notify: name: Notify Lark via webhook - needs: release + needs: build-n-publish runs-on: ubuntu-latest - if: ${{ always() }} + if: ${{ always() }} && github.repository == 'hpcaitech/ColossalAI' steps: - uses: actions/checkout@v2