Skip to content

Commit 5b5c3e8

Browse files
committed
Added condition in linux_job_v2.yml to run workflow called by ROCm job on cron schedule and when push to main only.
1 parent 9571290 commit 5b5c3e8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/linux_job_v2.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,15 @@ on:
108108
required: false
109109
default: false
110110
type: boolean
111+
check-run-condition:
112+
description: "Enable / Disable running workflow"
113+
required: false
114+
default: false
115+
type: boolean
111116

112117
jobs:
113118
job:
119+
if: ${{ inputs.check-run-condition && inputs.gpu-arch-type == 'rocm' && (github.event_name == 'push' || github.event_name == 'schedule') }}
114120
strategy:
115121
fail-fast: false
116122
name: ${{ inputs.job-name }}

0 commit comments

Comments
 (0)