ci: count X emoji using grep in test-summary action

ci: handle when grep exits with code 1 in test-summary action
This commit is contained in:
Nick Bolton
2026-02-12 13:26:58 +00:00
committed by Chris Rizzitello
parent 611a3300ba
commit 759ed684e3

View File

@ -60,7 +60,7 @@ runs:
echo "$table" > $GITHUB_STEP_SUMMARY
count=$(echo "$table" | awk -v RS='' '{gsub(/[^❌]/, ""); print length}')
count=$(echo "$table" | { grep -o '❌' || true; } | wc -l)
# Keep at this indentation level for heredoc.
fail_summary=$(cat <<EOF