From 161d77d98a756b172b7d86b8aec7307d954b188c Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Thu, 17 Oct 2024 23:36:37 -0700 Subject: [PATCH] fix env path on windows use native shells' env var syntax --- action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 4b67e92..2b6894e 100644 --- a/action.yml +++ b/action.yml @@ -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" ;; @@ -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)