Skip to content

Commit 1fcf794

Browse files
authored
Return false if unwanted board
1 parent b69363f commit 1fcf794

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

.github/workflows/build-clang-doxy.yml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
steps:
3030
- name: "skip if unwanted"
3131
if: |
32-
github.event_name != 'workflow_dispatch' ||
33-
github.event.inputs.board == '' ||
34-
matrix.arduino-platform == github.event.inputs.board
32+
github.event_name == 'workflow_dispatch' &&
33+
github.event.inputs.board != '' &&
34+
matrix.arduino-platform != github.event.inputs.board
3535
run: |
36-
echo "build this one!"
36+
echo "don't build this one!"; exit 1
3737
- uses: actions/setup-python@v5
3838
with:
3939
python-version: "3.x"
@@ -208,11 +208,11 @@ jobs:
208208
steps:
209209
- name: "skip if unwanted"
210210
if: |
211-
github.event_name != 'workflow_dispatch' ||
212-
github.event.inputs.board == '' ||
213-
matrix.arduino-platform == github.event.inputs.board
211+
github.event_name == 'workflow_dispatch' &&
212+
github.event.inputs.board != '' &&
213+
matrix.arduino-platform != github.event.inputs.board
214214
run: |
215-
echo "build this one!"
215+
echo "don't build this one!"; exit 1
216216
- uses: actions/setup-python@v5
217217
with:
218218
python-version: "3.x"
@@ -320,11 +320,11 @@ jobs:
320320
steps:
321321
- name: "skip if unwanted"
322322
if: |
323-
github.event_name != 'workflow_dispatch' ||
324-
github.event.inputs.board == '' ||
325-
matrix.arduino-platform == github.event.inputs.board
323+
github.event_name == 'workflow_dispatch' &&
324+
github.event.inputs.board != '' &&
325+
matrix.arduino-platform != github.event.inputs.board
326326
run: |
327-
echo "build this one!"
327+
echo "don't build this one!"; exit 1
328328
- uses: actions/setup-python@v5
329329
with:
330330
python-version: "3.x"
@@ -457,11 +457,11 @@ jobs:
457457
steps:
458458
- name: "skip if unwanted"
459459
if: |
460-
github.event_name != 'workflow_dispatch' ||
461-
github.event.inputs.board == '' ||
462-
matrix.arduino-platform == github.event.inputs.board
460+
github.event_name == 'workflow_dispatch' &&
461+
github.event.inputs.board != '' &&
462+
matrix.arduino-platform != github.event.inputs.board
463463
run: |
464-
echo "build this one!"
464+
echo "don't build this one!"; exit 1
465465
- uses: actions/setup-python@v5
466466
with:
467467
python-version: "3.x"
@@ -538,11 +538,11 @@ jobs:
538538
steps:
539539
- name: "skip if unwanted"
540540
if: |
541-
github.event_name != 'workflow_dispatch' ||
542-
github.event.inputs.board == '' ||
543-
matrix.arduino-platform == github.event.inputs.board
541+
github.event_name == 'workflow_dispatch' &&
542+
github.event.inputs.board != '' &&
543+
matrix.arduino-platform != github.event.inputs.board
544544
run: |
545-
echo "build this one!"
545+
echo "don't build this one!"; exit 1
546546
- uses: actions/setup-python@v5
547547
with:
548548
python-version: "3.x"
@@ -616,11 +616,11 @@ jobs:
616616
steps:
617617
- name: "skip if unwanted"
618618
if: |
619-
github.event_name != 'workflow_dispatch' ||
620-
github.event.inputs.board == '' ||
621-
matrix.arduino-platform == github.event.inputs.board
619+
github.event_name == 'workflow_dispatch' &&
620+
github.event.inputs.board != '' &&
621+
matrix.arduino-platform != github.event.inputs.board
622622
run: |
623-
echo "build this one!"
623+
echo "don't build this one!"; exit 1
624624
- uses: actions/setup-python@v5
625625
with:
626626
python-version: "3.x"
@@ -711,11 +711,11 @@ jobs:
711711
steps:
712712
- name: "skip if unwanted"
713713
if: |
714-
github.event_name != 'workflow_dispatch' ||
715-
github.event.inputs.board == '' ||
716-
matrix.arduino-platform == github.event.inputs.board
714+
github.event_name == 'workflow_dispatch' &&
715+
github.event.inputs.board != '' &&
716+
matrix.arduino-platform != github.event.inputs.board
717717
run: |
718-
echo "build this one!"
718+
echo "don't build this one!"; exit 1
719719
- uses: actions/setup-python@v5
720720
with:
721721
python-version: "3.x"
@@ -814,11 +814,11 @@ jobs:
814814
steps:
815815
- name: "skip if unwanted"
816816
if: |
817-
github.event_name != 'workflow_dispatch' ||
818-
github.event.inputs.board == '' ||
819-
matrix.arduino-platform == github.event.inputs.board
817+
github.event_name == 'workflow_dispatch' &&
818+
github.event.inputs.board != '' &&
819+
matrix.arduino-platform != github.event.inputs.board
820820
run: |
821-
echo "build this one!"
821+
echo "don't build this one!"; exit 1
822822
- uses: actions/setup-python@v5
823823
with:
824824
python-version: "3.x"

0 commit comments

Comments
 (0)