Skip to content

Commit 2bb0d83

Browse files
committed
sanitize ANSI escape codes from Webpack build logs in CI summary
1 parent 7e01065 commit 2bb0d83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ jobs:
5252
run: |
5353
echo "### 📦 Webpack Build Summary" >> $GITHUB_STEP_SUMMARY
5454
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
55-
cat build-output.log >> $GITHUB_STEP_SUMMARY
56-
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
55+
sed -r "s/\x1B\[[0-9;]*[mK]//g" build-output.log >> $GITHUB_STEP_SUMMARY
56+
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)