Skip to content

Commit c9b10d2

Browse files
authored
Merge pull request #41 from rursprung/CI-more-generic-build-results-check
CI: use more generic version of `build-results`
2 parents b3a44d8 + ef961cc commit c9b10d2

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,12 @@ jobs:
8888
name: Final Results
8989
if: ${{ always() }}
9090
runs-on: ubuntu-latest
91-
needs: [lib, stm32f4-event-printer]
91+
needs:
92+
- lib
93+
- stm32f4-event-printer
9294
steps:
93-
- name: check for failed builds of the library
94-
if: ${{ needs.lib.result != 'success' }}
95-
run: exit 1
96-
- name: check for failed builds of the example
97-
if: ${{ needs.stm32f4-event-printer.result != 'success' }}
98-
run: exit 1
95+
- name: "check for failed builds"
96+
run: |
97+
cat <<EOF | jq -e 'unique | all(. == "success")'
98+
${{ toJson(needs.*.result) }}
99+
EOF

0 commit comments

Comments
 (0)