Skip to content

Commit c6ee8ad

Browse files
committed
ci: fix gate to use needs.*.result wildcard (org-tests rename broke needs.test.result ref)
1 parent f062f37 commit c6ee8ad

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/tests.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ jobs:
1717
steps:
1818
- name: Check test results
1919
run: |
20-
if [[ "${{ needs.test.result }}" != "success" ]]; then
21-
echo "Tests failed"
22-
exit 1
23-
fi
24-
echo "All tests passed"
20+
results=($(echo '${{ toJSON(needs.*.result) }}' | jq -r '.[]'))
21+
for r in "${results[@]}"; do
22+
if [[ "$r" != "success" ]]; then
23+
echo "A required job did not succeed: $r"
24+
exit 1
25+
fi
26+
done
27+
echo "All jobs passed"

0 commit comments

Comments
 (0)