Skip to content

Commit 7c9b98f

Browse files
committed
set FORCE_COLOR=1 when needed
allows rich to force-enable coloring The env changes should only apply to the composite action's env
1 parent 161d77d commit 7c9b98f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ runs:
274274
case "$CPP_LINTER_COLOR" in
275275
"true" | "on" | "1")
276276
pip install -r "$GITHUB_ACTION_PATH/color-requirements.txt"
277+
echo "FORCE_COLOR=1" >> $GITHUB_ENV
277278
;;
278279
esac
279280
@@ -321,6 +322,7 @@ runs:
321322
if ( $colorEnabled.contains("$env:CPP_LINTER_COLOR") )
322323
{
323324
pip install -r "$env:GITHUB_ACTION_PATH/color-requirements.txt"
325+
echo "FORCE_COLOR=1" >> $env.GITHUB_ENV
324326
}
325327
326328
- name: Run cpp-linter (Windows)

0 commit comments

Comments
 (0)