Skip to content

Commit 90caae8

Browse files
committed
Simplify test logic in report-results job
1 parent 13f920e commit 90caae8

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -525,19 +525,7 @@ jobs:
525525
timeout-minutes: 5
526526
steps:
527527
- name: Report failure
528-
if: >-
529-
${{
530-
(needs.action-lint.result != 'success' && needs.action-lint.result != 'skipped')
531-
|| (needs.bazel-lint.result != 'success' && needs.bazel-lint.result != 'skipped')
532-
|| (needs.docker-lint.result != 'success' && needs.docker-lint.result != 'skipped')
533-
|| (needs.docker-tests.result != 'success' && needs.docker-tests.result != 'skipped')
534-
|| (needs.library-tests.result != 'success' && needs.library-tests.result != 'skipped')
535-
|| (needs.memory-tests.result != 'success' && needs.memory-tests.result != 'skipped')
536-
|| (needs.options-tests.result != 'success' && needs.options-tests.result != 'skipped')
537-
|| (needs.python-checks.result != 'success' && needs.python-checks.result != 'skipped')
538-
|| (needs.shell-lint.result != 'success' && needs.shell-lint.result != 'skipped')
539-
|| (needs.yaml-lint.result != 'success' && needs.yaml-lint.result != 'skipped')
540-
}}
528+
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
541529
run: |
542530
echo ":x: One or more CI jobs failed."
543531
exit 1

0 commit comments

Comments
 (0)