Unverified Commit dbd0fd15 authored by LuGY's avatar LuGY Committed by GitHub
Browse files

[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
parent 8593ae1a
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment