From 526473670686b0f0125a58c5e1f52b798a8e327e Mon Sep 17 00:00:00 2001 From: FrankLeeeee Date: Mon, 16 Jan 2023 10:01:25 +0800 Subject: [PATCH] [workflow] fixed the skip condition of example weekly check workflow --- .github/workflows/auto_example_check.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/auto_example_check.yml b/.github/workflows/auto_example_check.yml index f88b6858e003..5e4022f7f0ea 100644 --- a/.github/workflows/auto_example_check.yml +++ b/.github/workflows/auto_example_check.yml @@ -81,9 +81,8 @@ jobs: # This is for all files' weekly check. Specifically, this job is to find all the directories. matrix_preparation: if: | - github.event.pull_request.draft == false && - github.base_ref == 'main' && - github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI' && github.event_name == 'schedule' + github.repository == 'hpcaitech/ColossalAI' && + github.event_name == 'schedule' name: Prepare matrix for weekly check runs-on: ubuntu-latest outputs: @@ -101,9 +100,8 @@ jobs: weekly_check: if: | - github.event.pull_request.draft == false && - github.base_ref == 'main' && - github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI' && github.event_name == 'schedule' + github.repository == 'hpcaitech/ColossalAI' && + github.event_name == 'schedule' name: Weekly check all examples needs: matrix_preparation runs-on: [self-hosted, gpu]