Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ runs:
if [ -n "$INPUT_DIFF" ]; then FLAGS="$FLAGS --diff $INPUT_DIFF"; fi

if [ -n "$INPUT_GITHUB_TOKEN" ]; then
npx -y react-doctor@latest "$INPUT_DIRECTORY" $FLAGS | tee /tmp/react-doctor-output.txt
npx -y react-doctor@latest "$INPUT_DIRECTORY" $FLAGS | tee /tmp/react-doctor-output-raw.txt
sed 's/\x1b\[[0-9;]*[mGKHFJABCDsuh]//g' /tmp/react-doctor-output-raw.txt > /tmp/react-doctor-output.txt
else
npx -y react-doctor@latest "$INPUT_DIRECTORY" $FLAGS
fi
Expand Down