diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e9dbf195e..db1454907 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: workflow_dispatch jobs: build-n-publish: - if: github.base_ref == 'main' && github.repository == 'hpcaitech/ColossalAI' && contains(fromJson('["FrankLeeeee", "ver217", "feifeibear", "kurisusnowdeng"]'), github.actor) + if: github.ref_name == 'main' && github.repository == 'hpcaitech/ColossalAI' && contains(fromJson('["FrankLeeeee", "ver217", "feifeibear", "kurisusnowdeng"]'), github.actor) name: Build and publish Python 🐍 distributions 📦 to PyPI runs-on: ubuntu-latest timeout-minutes: 20 diff --git a/.github/workflows/release_test.yml b/.github/workflows/release_test.yml index 81fe80b38..1039e2349 100644 --- a/.github/workflows/release_test.yml +++ b/.github/workflows/release_test.yml @@ -4,7 +4,7 @@ on: workflow_dispatch jobs: build-n-publish: - if: github.base_ref == 'main' && github.repository == 'hpcaitech/ColossalAI' && contains(fromJson('["FrankLeeeee", "ver217", "feifeibear", "kurisusnowdeng"]'), github.actor) + if: github.ref_name == 'main' && github.repository == 'hpcaitech/ColossalAI' && contains(fromJson('["FrankLeeeee", "ver217", "feifeibear", "kurisusnowdeng"]'), github.actor) name: Build and publish Python 🐍 distributions 📦 to Test PyPI runs-on: ubuntu-latest timeout-minutes: 20