@@ -260,7 +260,7 @@ runs:
260260 id : compute-cache-key
261261 shell : nu {0}
262262 run : |-
263- let action_path = $env.GITHUB_ACTION_PATH | str trim --right --char '/'
263+ let action_path = $env.GITHUB_ACTION_PATH | path expand
264264 let req_file = $action_path | path join 'requirements.txt'
265265 let lock_file = $action_path | path join 'uv.lock'
266266 let action_file = $action_path | path join 'action.yml'
@@ -280,7 +280,7 @@ runs:
280280 uses : actions/cache@v4
281281 with :
282282 path : ${{ runner.temp }}/cpp-linter-action-cache
283- key : cpp-linter-action_${{ steps.compute-cache-key.outputs.key }}
283+ key : cpp-linter-action_${{ runner.os }}_${{ steps.compute-cache-key.outputs.key }}
284284
285285 - name : Install MacOS clang dependencies
286286 if : runner.os == 'macOS'
@@ -296,11 +296,11 @@ runs:
296296 env :
297297 UV_NO_MODIFY_PATH : 1
298298 run : |-
299- let action_path = $env.GITHUB_ACTION_PATH | str trim --right --char '/'
299+ let action_path = $env.GITHUB_ACTION_PATH | path expand
300300 $env.UV_INSTALL_DIR = $action_path | path join 'bin'
301301 $env.UV_PROJECT_ENVIRONMENT = $action_path | path join '.venv'
302302
303- $env.UV_CACHE_DIR = '${{ runner.temp }}' | path join 'cpp-linter-action-cache'
303+ $env.UV_CACHE_DIR = $env.RUNNER_TEMP | path join 'cpp-linter-action-cache'
304304 if (not ($env.UV_CACHE_DIR | path exists)) {
305305 mkdir $env.UV_CACHE_DIR
306306 }
@@ -318,13 +318,10 @@ runs:
318318 id : cpp-linter
319319 shell : nu {0}
320320 run : |-
321- let action_path = (
322- $env.GITHUB_ACTION_PATH
323- | str trim --right --char '/'
324- )
321+ let action_path = $env.GITHUB_ACTION_PATH | path expand
325322 $env.UV_INSTALL_DIR = $action_path | path join 'bin'
326323 $env.UV_PROJECT_ENVIRONMENT = $action_path | path join '.venv'
327- $env.UV_CACHE_DIR = '${{ runner.temp }}' | path join 'cpp-linter-action-cache'
324+ $env.UV_CACHE_DIR = $env.RUNNER_TEMP | path join 'cpp-linter-action-cache'
328325
329326 let args = [
330327 --style="${{ inputs.style }}"
0 commit comments