Skip to content

Commit 579dba5

Browse files
authored
[workflow] fixed the skip condition of example weekly check workflow (#2481)
1 parent 21c8822 commit 579dba5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/auto_example_check.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ jobs:
8181
# This is for all files' weekly check. Specifically, this job is to find all the directories.
8282
matrix_preparation:
8383
if: |
84-
github.event.pull_request.draft == false &&
85-
github.base_ref == 'main' &&
86-
github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI' && github.event_name == 'schedule'
84+
github.repository == 'hpcaitech/ColossalAI' &&
85+
github.event_name == 'schedule'
8786
name: Prepare matrix for weekly check
8887
runs-on: ubuntu-latest
8988
outputs:
@@ -101,9 +100,8 @@ jobs:
101100
102101
weekly_check:
103102
if: |
104-
github.event.pull_request.draft == false &&
105-
github.base_ref == 'main' &&
106-
github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI' && github.event_name == 'schedule'
103+
github.repository == 'hpcaitech/ColossalAI' &&
104+
github.event_name == 'schedule'
107105
name: Weekly check all examples
108106
needs: matrix_preparation
109107
runs-on: [self-hosted, gpu]

0 commit comments

Comments
 (0)