@@ -260,7 +260,7 @@ runs:
260
260
id : compute-cache-key
261
261
shell : nu {0}
262
262
run : |-
263
- let action_path = $env.GITHUB_ACTION_PATH | str trim --right --char '/'
263
+ let action_path = $env.GITHUB_ACTION_PATH | path expand
264
264
let req_file = $action_path | path join 'requirements.txt'
265
265
let lock_file = $action_path | path join 'uv.lock'
266
266
let action_file = $action_path | path join 'action.yml'
@@ -280,7 +280,7 @@ runs:
280
280
uses : actions/cache@v4
281
281
with :
282
282
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 }}
284
284
285
285
- name : Install MacOS clang dependencies
286
286
if : runner.os == 'macOS'
@@ -296,11 +296,11 @@ runs:
296
296
env :
297
297
UV_NO_MODIFY_PATH : 1
298
298
run : |-
299
- let action_path = $env.GITHUB_ACTION_PATH | str trim --right --char '/'
299
+ let action_path = $env.GITHUB_ACTION_PATH | path expand
300
300
$env.UV_INSTALL_DIR = $action_path | path join 'bin'
301
301
$env.UV_PROJECT_ENVIRONMENT = $action_path | path join '.venv'
302
302
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'
304
304
if (not ($env.UV_CACHE_DIR | path exists)) {
305
305
mkdir $env.UV_CACHE_DIR
306
306
}
@@ -318,13 +318,10 @@ runs:
318
318
id : cpp-linter
319
319
shell : nu {0}
320
320
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
325
322
$env.UV_INSTALL_DIR = $action_path | path join 'bin'
326
323
$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'
328
325
329
326
let args = [
330
327
--style="${{ inputs.style }}"
0 commit comments