Filter ANSI characters
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user