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:
parent
611a3300ba
commit
759ed684e3
1 changed files with 1 additions and 1 deletions
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
|
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.
|
# Keep at this indentation level for heredoc.
|
||||||
fail_summary=$(cat <<EOF
|
fail_summary=$(cat <<EOF
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue