Skip to content

Commit 8fc8b9f

Browse files
authored
More fiddling with YAML workflow conditions (#7537)
1 parent ef1261d commit 8fc8b9f

3 files changed

Lines changed: 3 additions & 27 deletions

File tree

.github/workflows/bencher-ab.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,7 @@ jobs:
2222
1ES.Pool=gha-vmss-d16av5-ci,
2323
"JobId=bab_benchmark_pr-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}",
2424
]
25-
if: &check_trigger_conditions >-
26-
${{
27-
(github.event.action == 'labeled'
28-
&& github.event.label.name == 'bench-ab')
29-
|| (github.event.action != 'labeled'
30-
&& contains(github.event.labels.*.name, 'bench-ab'))
31-
|| github.event_name == 'workflow_dispatch'
32-
|| github.event_name == 'schedule'
33-
}}
25+
if: &check_trigger_conditions ${{ (github.event.action == 'labeled' && github.event.label.name == 'bench-ab') || (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'bench-ab')) || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'}}
3426
container:
3527
image: mcr.microsoft.com/azurelinux/base/core:3.0
3628
options: --user root

.github/workflows/long-test.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,7 @@ permissions: read-all
1919

2020
jobs:
2121
long-asan:
22-
if: &check_trigger_conditions >-
23-
${{
24-
(github.event.action == 'labeled'
25-
&& github.event.label.name == 'run-long-test')
26-
|| (github.event.action != 'labeled'
27-
&& contains(github.event.labels.*.name, 'run-long-test'))
28-
|| github.event_name == 'workflow_dispatch'
29-
|| github.event_name == 'schedule'
30-
}}
22+
if: &check_trigger_conditions ${{ (github.event.action == 'labeled' && github.event.label.name == 'run-long-test') || (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'run-long-test')) || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
3123
name: "ASAN"
3224
runs-on:
3325
[

.github/workflows/long-verification.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,7 @@ permissions: read-all
2020
jobs:
2121
model-checking-with-atomic-reconfig-consensus:
2222
name: Model Checking With Atomic Reconfig - Consensus
23-
if: &check_trigger_conditions >-
24-
${{
25-
(github.event.action == 'labeled'
26-
&& github.event.label.name == 'run-long-verification')
27-
|| (github.event.action != 'labeled'
28-
&& contains(github.event.labels.*.name, 'run-long-verification'))
29-
|| github.event_name == 'workflow_dispatch'
30-
|| github.event_name == 'schedule'
31-
}}
23+
if: &check_trigger_conditions ${{ (github.event.action == 'labeled' && github.event.label.name == 'run-long-verification') || (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'run-long-verification')) || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
3224
runs-on:
3325
[
3426
self-hosted,

0 commit comments

Comments
 (0)