From 292590e0fa32aee68abe3b5430856416bc4b04d2 Mon Sep 17 00:00:00 2001 From: Frank Lee Date: Fri, 18 Mar 2022 17:42:33 +0800 Subject: [PATCH] [test] fixed release workflow condition (#463) --- .github/workflows/release.yml | 2 +- .github/workflows/release_test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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