Skip to content

Commit db6dc51

Browse files
authored
Merge pull request #57 from rursprung/CI-more-generic-build-results-check
CI: use more generic version of `build-results`
2 parents 4c26bff + 4a4b42c commit db6dc51

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/CI.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,13 @@ jobs:
100100
name: Final Results
101101
if: ${{ always() }}
102102
runs-on: ubuntu-latest
103-
needs: [lib, stm32f4-single-motor-example, clippy]
103+
needs:
104+
- lib
105+
- stm32f4-single-motor-example
106+
- clippy
104107
steps:
105-
- name: check for failed builds of the library
106-
if: ${{ needs.lib.result != 'success' }}
107-
run: exit 1
108-
- name: check for failed builds of the example
109-
if: ${{ needs.stm32f4-single-motor-example.result != 'success' }}
110-
run: exit 1
111-
- name: check for failed clippy builds
112-
if: ${{ needs.clippy.result != 'success' }}
113-
run: exit 1
108+
- name: "check for failed builds"
109+
run: |
110+
cat <<EOF | jq -e 'unique | all(. == "success")'
111+
${{ toJson(needs.*.result) }}
112+
EOF

0 commit comments

Comments
 (0)