Enable ANSI escape sequences for CI/CD output
This commit is contained in:
parent
106a5d88d6
commit
aedd16d127
2 changed files with 3 additions and 2 deletions
|
@ -7,6 +7,7 @@ on:
|
|||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
PACWRAP_SCHEMA_BUILT: 1
|
||||
PACWRAP_CI: 1
|
||||
|
||||
jobs:
|
||||
checkfmt:
|
||||
|
|
4
dist/tools/common.sh
vendored
4
dist/tools/common.sh
vendored
|
@ -27,10 +27,10 @@ ACTION_NOUN="Common script"
|
|||
DIST_BIN="$PWD/dist/bin"
|
||||
DIST_SRC="$PWD/dist/src"
|
||||
|
||||
if [[ -t 2 ]] && [[ ! -z $COLORTERM ]] && [[ $TERM != "dummy" ]]; then
|
||||
if [[ -t 2 ]] && [[ ! -z $COLORTERM ]] && [[ $TERM != "dummy" ]] || [[ $PACWRAP_CI == 1 ]]; then
|
||||
BOLD="[1m"
|
||||
RED="[1;31m"
|
||||
GREEN="[1;32m"
|
||||
GREEN="[1;32m"
|
||||
RESET="[0m"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue