Skip to content

Commit

Permalink
AI suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Oct 18, 2024
1 parent 5f14ac8 commit b8a3a59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ workflow [`step-summary`][step-summary], and Pull Request reviews (with
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)

> [!TIP]
> To enable color output in the workflow logs, set the environment variable `CPP_LINTER_COLOR` to a value of `on` or `true` or `1`.
> To enable color output in the workflow logs,
> set the environment variable `CPP_LINTER_COLOR` to a
> value of `on`, `true`, or `1`.
The content of the file should be in the following format.

Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ runs:
source "$GITHUB_ACTION_PATH/venv/bin/activate"
pip install -r "$GITHUB_ACTION_PATH/requirements.txt"
clang-tools -i ${{ inputs.version }} -b
# Install color output requirements if enabled
case "${{ env.CPP_LINTER_COLOR }}" in
"true" | "on" | "1")
pip install -r "$GITHUB_ACTION_PATH/color-requirements.txt"
Expand Down Expand Up @@ -313,6 +315,8 @@ runs:
Invoke-Expression -Command "$env:GITHUB_ACTION_PATH/venv/Scripts/Activate.ps1"
pip install -r "$env:GITHUB_ACTION_PATH/requirements.txt"
clang-tools -i ${{ inputs.version }} -b
# Install color output requirements if enabled
$colorEnabled = "true","on","1"
if ( $colorEnabled.contains("${{ env.CPP_LINTER_COLOR }}") )
{
Expand Down

0 comments on commit b8a3a59

Please sign in to comment.