Skip to content

Commit d68c9eb

Browse files
author
SX
committed
Remove some control codes from stdout
1 parent 86cd4e6 commit d68c9eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ runs:
101101
grep_eronly=(grep '0 successes / 0 failures / [1-9] error.\? / 0 pending')
102102
grep_nospec=(grep 'No test files found')
103103
("${grep_eronly[@]}"<<<"$OUT" && "${grep_nospec[@]}"<<<"$OUT")&>/dev/null && echo "::set-output name=spec-missing::true"
104+
OUT="$(sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g'<<<"$OUT")"
104105
OUT="${OUT//'%'/'%25'}";OUT="${OUT//$'\n'/'%0A'}"
105106
echo "::set-output name=stdout::${OUT//$'\r'/'%0D'}"
106107
exit $ERR

0 commit comments

Comments
 (0)