Filter ANSI characters

This commit is contained in:
2026-07-09 09:21:27 +09:00
parent 1d3f17e0f2
commit c64f1fdbf6
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ runs:
shell: bash shell: bash
run: | run: |
apt-get update apt-get update
apt-get install -y --no-install-recommends gettext-base jq apt-get install -y --no-install-recommends gettext-base jq ansifilter
npm install -g @openai/codex npm install -g @openai/codex
- name: Run Codex Bot - name: Run Codex Bot
+3 -1
View File
@@ -17,9 +17,11 @@ post_comment() {
} }
if ! codex login status > /dev/null 2>&1; then if ! codex login status > /dev/null 2>&1; then
codex login --device-auth > "${OUTPUT_FILE}" 2>&1 & LOGIN_FILE="$(mktemp)"
codex login --device-auth > "${LOGIN_FILE}" 2>&1 &
LOGIN_PID="${!}" LOGIN_PID="${!}"
sleep 3 sleep 3
ansifilter < "${LOGIN_FILE}" > "${OUTPUT_FILE}"
post_comment post_comment
wait "${LOGIN_PID}" wait "${LOGIN_PID}"
exit 1 exit 1