diff --git a/.cirrus.yml b/.cirrus.yml index 1b8d717167..7bc8317577 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -65,13 +65,15 @@ skip_task_on_pr: &SKIP_TASK_ON_PR # Skip this task on PRs if it does not have the fullci label, # it continues to run for direct pushes to master/release. skip: > - ($CIRRUS_PR != '' && $CIRRUS_PR_LABELS !=~ '.*fullci.*') + ! ( $CIRRUS_PR == '' || $CIRRUS_PR_LABELS =~ '.*fullci.*' ) zam_skip_task_on_pr: &ZAM_SKIP_TASK_ON_PR - # Skip this task on PRs if it does not have the fullci or zamci label, - # it continues to run for direct pushes to master/release. + # Skip this task on PRs unless it has the `fullci` or `zamci` label + # or files in src/script_opt/** were modified. + # It continues to run for direct pushes to master/release, as + # CIRRUS_PR will be empty. skip: > - ($CIRRUS_PR != '' && $CIRRUS_PR_LABELS !=~ '.*fullci.*' && $CIRRUS_PR_LABELS !=~ '.*zamci.*') + ! ( $CIRRUS_PR == '' || $CIRRUS_PR_LABELS =~ '.*fullci.*' || $CIRRUS_PR_LABELS =~ '.*zamci.*' || changesInclude('src/script_opt/**') ) benchmark_only_if_template: &BENCHMARK_ONLY_IF_TEMPLATE # only_if condition for cron-triggered benchmarking tests.