Skip to content

Commit

Permalink
Remove some control codes from stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
SX committed Feb 28, 2021
1 parent 86cd4e6 commit d68c9eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ runs:
grep_eronly=(grep '0 successes / 0 failures / [1-9] error.\? / 0 pending')
grep_nospec=(grep 'No test files found')
("${grep_eronly[@]}"<<<"$OUT" && "${grep_nospec[@]}"<<<"$OUT")&>/dev/null && echo "::set-output name=spec-missing::true"
OUT="$(sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g'<<<"$OUT")"
OUT="${OUT//'%'/'%25'}";OUT="${OUT//$'\n'/'%0A'}"
echo "::set-output name=stdout::${OUT//$'\r'/'%0D'}"
exit $ERR
Expand Down

0 comments on commit d68c9eb

Please sign in to comment.