Skip to content

Commit 161d77d

Browse files
committed
fix env path on windows
use native shells' env var syntax
1 parent b8a3a59 commit 161d77d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ runs:
271271
clang-tools -i ${{ inputs.version }} -b
272272
273273
# Install color output requirements if enabled
274-
case "${{ env.CPP_LINTER_COLOR }}" in
274+
case "$CPP_LINTER_COLOR" in
275275
"true" | "on" | "1")
276276
pip install -r "$GITHUB_ACTION_PATH/color-requirements.txt"
277277
;;
@@ -318,9 +318,9 @@ runs:
318318
319319
# Install color output requirements if enabled
320320
$colorEnabled = "true","on","1"
321-
if ( $colorEnabled.contains("${{ env.CPP_LINTER_COLOR }}") )
321+
if ( $colorEnabled.contains("$env:CPP_LINTER_COLOR") )
322322
{
323-
pip install -r "$GITHUB_ACTION_PATH/color-requirements.txt"
323+
pip install -r "$env:GITHUB_ACTION_PATH/color-requirements.txt"
324324
}
325325
326326
- name: Run cpp-linter (Windows)

0 commit comments

Comments
 (0)