Skip to content

Commit b8a3a59

Browse files
committed
AI suggestions
1 parent 5f14ac8 commit b8a3a59

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ workflow [`step-summary`][step-summary], and Pull Request reviews (with
4848
Create a new GitHub Actions workflow in your project, e.g. at [.github/workflows/cpp-linter.yml](https://github.com/cpp-linter/cpp-linter-action/blob/main/.github/workflows/cpp-linter.yml)
4949

5050
> [!TIP]
51-
> To enable color output in the workflow logs, set the environment variable `CPP_LINTER_COLOR` to a value of `on` or `true` or `1`.
51+
> To enable color output in the workflow logs,
52+
> set the environment variable `CPP_LINTER_COLOR` to a
53+
> value of `on`, `true`, or `1`.
5254
5355
The content of the file should be in the following format.
5456

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ runs:
269269
source "$GITHUB_ACTION_PATH/venv/bin/activate"
270270
pip install -r "$GITHUB_ACTION_PATH/requirements.txt"
271271
clang-tools -i ${{ inputs.version }} -b
272+
273+
# Install color output requirements if enabled
272274
case "${{ env.CPP_LINTER_COLOR }}" in
273275
"true" | "on" | "1")
274276
pip install -r "$GITHUB_ACTION_PATH/color-requirements.txt"
@@ -313,6 +315,8 @@ runs:
313315
Invoke-Expression -Command "$env:GITHUB_ACTION_PATH/venv/Scripts/Activate.ps1"
314316
pip install -r "$env:GITHUB_ACTION_PATH/requirements.txt"
315317
clang-tools -i ${{ inputs.version }} -b
318+
319+
# Install color output requirements if enabled
316320
$colorEnabled = "true","on","1"
317321
if ( $colorEnabled.contains("${{ env.CPP_LINTER_COLOR }}") )
318322
{

0 commit comments

Comments
 (0)