Skip to content

Commit 5c68110

Browse files
authored
Update test.yml
1 parent e309203 commit 5c68110

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,15 @@ jobs:
8989

9090
self:
9191
name: Self Hosted
92-
if: github.repository == 'MFlowCode/MFC' && needs.file-changes.outputs.checkall == 'true'
9392
needs: file-changes
93+
# one consolidated condition
94+
if: |
95+
github.repository == 'MFlowCode/MFC' &&
96+
needs.file-changes.outputs.checkall == 'true' &&
97+
(
98+
github.event_name == 'workflow_dispatch' ||
99+
!(matrix.lbl == 'frontier' && matrix.device == 'cpu')
100+
)
94101
continue-on-error: false
95102
timeout-minutes: 1400
96103
strategy:

0 commit comments

Comments
 (0)