From f4b9907c8b32c63ca27fe4257e83a2425af08cb7 Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Tue, 12 Nov 2024 03:59:29 -0700 Subject: [PATCH] disable color support for PR comments --- pkgcruft-action | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgcruft-action b/pkgcruft-action index 73e9414..a0e4758 100755 --- a/pkgcruft-action +++ b/pkgcruft-action @@ -53,6 +53,8 @@ set +e # pull request diff OLD_SCAN_DIR="${HOME}/.cache/pkgcruft/scans/${GIT_BASE_BRANCH}" if [[ -f ${OLD_SCAN_DIR}/old.json ]]; then + # disable colors as ANSI escape codes aren't interpreted in github comments + export NO_COLOR=1 diff=$(mktemp) pkgcruft diff --sort "${OLD_SCAN_DIR}/old.json" "${SCAN_DIR}/new.json" > "${diff}" diff_output=$(mktemp)