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 f4b9907
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgcruft-action
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f4b9907

Please sign in to comment.