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:
committed by
Chris Rizzitello
parent
611a3300ba
commit
759ed684e3
2
.github/actions/test-summary/action.yml
vendored
2
.github/actions/test-summary/action.yml
vendored
@ -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
|
||||
|
||||
Reference in New Issue
Block a user