mirror of https://github.com/hpcaitech/ColossalAI
[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 failedpull/2826/head
parent
8593ae1a3f
commit
dbd0fd1522
|
@ -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…
Reference in New Issue