Skip to content

Commit

Permalink
disable color support for PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
radhermit committed Nov 12, 2024
1 parent 11bb6af commit 5707fef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgcruft-action
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ set +e
OLD_SCAN_DIR="${HOME}/.cache/pkgcruft/scans/${GIT_BASE_BRANCH}"
if [[ -f ${OLD_SCAN_DIR}/old.json ]]; then
diff=$(mktemp)
pkgcruft diff --sort "${OLD_SCAN_DIR}/old.json" "${SCAN_DIR}/new.json" > "${diff}"
# disable colors as ANSI escape codes aren't interpreted in github comments
NO_COLOR=1 pkgcruft diff --sort "${OLD_SCAN_DIR}/old.json" "${SCAN_DIR}/new.json" > "${diff}"
diff_output=$(mktemp)
# output diff if changes exists
if [[ -s ${diff} ]]; then
Expand Down

0 comments on commit 5707fef

Please sign in to comment.