Skip to content

Commit

Permalink
fix env path on windows
Browse files Browse the repository at this point in the history
use native shells' env var syntax
  • Loading branch information
2bndy5 committed Oct 18, 2024
1 parent b8a3a59 commit 161d77d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ runs:
clang-tools -i ${{ inputs.version }} -b
# Install color output requirements if enabled
case "${{ env.CPP_LINTER_COLOR }}" in
case "$CPP_LINTER_COLOR" in
"true" | "on" | "1")
pip install -r "$GITHUB_ACTION_PATH/color-requirements.txt"
;;
Expand Down Expand Up @@ -318,9 +318,9 @@ runs:
# Install color output requirements if enabled
$colorEnabled = "true","on","1"
if ( $colorEnabled.contains("${{ env.CPP_LINTER_COLOR }}") )
if ( $colorEnabled.contains("$env:CPP_LINTER_COLOR") )
{
pip install -r "$GITHUB_ACTION_PATH/color-requirements.txt"
pip install -r "$env:GITHUB_ACTION_PATH/color-requirements.txt"
}
- name: Run cpp-linter (Windows)
Expand Down

0 comments on commit 161d77d

Please sign in to comment.