Use simpler (but equivalent) logic

Co-authored-by: Curtis Vogt <curtis.vogt@gmail.com>
This commit is contained in:
Dilum Aluthge
2024-09-19 16:27:11 -04:00
committed by GitHub
parent cc75a38c8b
commit a3af7bd0ec

View File

@@ -30,15 +30,8 @@ jobs:
echo npm-run-test: ${{ needs.npm-run-test.result }}
echo make-targets: ${{ needs.make-targets.result }}
echo stalecheck-npm-install: ${{ needs.stalecheck-npm-install.result }}
# The last line must NOT end with ||
# All other lines MUST end with ||
- run: exit 1
if: |
(needs.checked-in-files.result != 'success') ||
(needs.build.result != 'success') ||
(needs.npm-run-test.result != 'success') ||
(needs.make-targets.result != 'success') ||
(needs.stalecheck-npm-install.result != 'success')
if: ${{ !contains(needs.*.result, 'failure') || !contains(needs.*.result, 'cancelled') || !contains(needs.*.result, 'skipped') }}
checked-in-files:
timeout-minutes: 30
runs-on: ubuntu-latest