From d4bc3856e36774a146974534e3845d1af45ea1ee Mon Sep 17 00:00:00 2001 From: k22036 Date: Mon, 23 Feb 2026 13:33:27 +0900 Subject: [PATCH] fix: update output file handling and remove ANSI escape codes --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 1fe8015..8a5900e 100644 --- a/action.yml +++ b/action.yml @@ -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