[CI/CD] fix nightly release CD running on forked repo (#2812)

* [CI/CD] fix nightly release CD running on forker repo

* fix misunderstanding of dispatch

* remove some build condition, enable notify even when release failed
pull/2826/head
LuGY 2 years ago committed by GitHub
parent 8593ae1a3f
commit dbd0fd1522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save