Skip to content

Commit 8f7ba27

Browse files
committed
Fix 'Check status of combined status' GH workflow step
1 parent b135795 commit 8f7ba27

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,8 @@ jobs:
318318
path: upload
319319
- name: Check status of combined status
320320
run: |
321-
stat=$(jq '.["tests"][]["data"]["status"]' upload/tool_test_output.json | grep -v "success" || true)
322-
if [[ "$(echo -n $stat | wc -l)" -gt "0" ]]; then
323-
echo "Unsuccessful tests found $(sort <<<$stat | uniq -c)"
321+
if jq '.["tests"][]["data"]["status"]' upload/tool_test_output.json | grep -v "success"; then
322+
echo "Unsuccessful tests found, inspect the 'All tool test results' artifact for details."
324323
exit 1
325324
fi
326325

0 commit comments

Comments
 (0)