Skip to content

Commit 26310ce

Browse files
committed
Workflows: fix logic for eamxx jobs skipping
1 parent aef01e8 commit 26310ce

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/eamxx-standalone-testing.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ jobs:
5151
fail-fast: false
5252
matrix:
5353
build_type: [sp, dbg, fpe, opt]
54-
if: ${{ !(github.event_name == 'workflow_dispatch' &&
55-
github.event.inputs.jobs_list != 'gcc-openmp' &&
56-
github.event.inputs.jobs_list != 'all') }}
54+
if: ${{ github.event_name != 'workflow_dispatch' ||
55+
github.event.inputs.jobs_list == 'gcc-openmp' ||
56+
github.event.inputs.jobs_list == 'all' }}
5757
name: gcc-openmp / ${{ matrix.build_type }}
5858
steps:
5959
- name: Check out the repository
@@ -96,9 +96,9 @@ jobs:
9696
fail-fast: false
9797
matrix:
9898
build_type: [sp, dbg, opt]
99-
if: ${{ !(github.event_name == 'workflow_dispatch' &&
100-
github.event.inputs.jobs_list != 'gcc-cuda' &&
101-
github.event.inputs.jobs_list != 'all') }}
99+
if: ${{ github.event_name != 'workflow_dispatch' ||
100+
github.event.inputs.jobs_list == 'gcc-cuda' ||
101+
github.event.inputs.jobs_list == 'all' }}
102102
name: gcc-cuda / ${{ matrix.build_type }}
103103
steps:
104104
- name: Check out the repository

.github/workflows/eamxx-v1-testing.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ jobs:
5555
short_name: SMS_D_Ln5.ne4pg2_oQU480.F2010-SCREAMv1-MPASSI.scream-mam4xx-all_mam4xx_procs
5656
fail-fast: false
5757
name: cpu-gcc / ${{ matrix.test.short_name }}
58-
if: ${{ !(github.event_name == 'workflow_dispatch' &&
59-
github.event.inputs.jobs_list != 'cpu-gcc' &&
60-
github.event.inputs.jobs_list != 'all') }}
58+
if: ${{ github.event_name != 'workflow_dispatch' ||
59+
github.event.inputs.job_to_run == 'cpu-gcc' ||
60+
github.event.inputs.job_to_run == 'all' }}
6161
steps:
6262
- name: Check out the repository
6363
uses: actions/checkout@v4

0 commit comments

Comments
 (0)