Skip to content

Commit

Permalink
fix: colors?
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Nov 4, 2023
1 parent bc0d3a4 commit fbe575d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 11 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ inputs:
static_token:
description: 'Repository static token - get it from codecov.io. Required'
required: true
colorize:
description: "Colorize the output"
required: false
default: true
enterprise_url:
description: 'Change the upload host (Enterprise use only)'
required: false
Expand Down Expand Up @@ -51,6 +55,13 @@ branding:
runs:
using: "composite"
steps:
- shell: bash
run: |
if [ "${{ inputs.colored-output }}" == "true" ]; then
echo "DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION=true" >> $GITHUB_ENV
echo "TERM=xterm" >> $GITHUB_ENV
fi
- id: codecov-ats
run: |
commands=$(./codecov_ats.sh | tail -n 1)
Expand Down
1 change: 0 additions & 1 deletion codecov_ats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
[[ $INPUTS_VERBOSE == true ]] && set -x

# Set colors
export TERM=xterm-color
b="\033[0;36m"
g="\033[0;32m"
r="\033[0;31m"
Expand Down

0 comments on commit fbe575d

Please sign in to comment.