Skip to content

Commit 581429f

Browse files
committed
readability
1 parent 3c4f3e5 commit 581429f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,6 @@ runs:
296296
run: |-
297297
let action_path = $env.GITHUB_ACTION_PATH | path expand
298298
$env.UV_INSTALL_DIR = $action_path | path join 'bin'
299-
# $env.UV_PROJECT_ENVIRONMENT = $action_path | path join '.venv'
300299
301300
$env.UV_CACHE_DIR = $env.RUNNER_TEMP | path join 'cpp-linter-action-cache'
302301
if (not ($env.UV_CACHE_DIR | path exists)) {
@@ -314,16 +313,16 @@ runs:
314313
^$'($env.UV_INSTALL_DIR)/uv' sync -v --project $action_path --group action
315314
316315
print $"\n(ansi purple)Ensuring clang-format and clang-tidy ${{ inputs.version }} are present(ansi reset)"
317-
^$'($env.UV_INSTALL_DIR)/uv' run --project $action_path --directory (pwd) -v clang-tools -i ${{ inputs.version }} -b
316+
let cmd = [clang-tools -i ${{ inputs.version }} -b]
317+
let uv_args = [run --no-sync --project $action_path --directory (pwd)]
318+
^$'($env.UV_INSTALL_DIR)/uv' -v ...$uv_args ...$cmd
318319
319320
- name: Run cpp-linter
320321
id: cpp-linter
321322
shell: nu {0}
322323
run: |-
323324
let action_path = $env.GITHUB_ACTION_PATH | path expand
324-
print $"(ansi red)cpp-linter-action located in ($action_path)(ansi reset)"
325325
$env.UV_INSTALL_DIR = $action_path | path join 'bin'
326-
# $env.UV_PROJECT_ENVIRONMENT = $action_path | path join '.venv'
327326
$env.UV_CACHE_DIR = $env.RUNNER_TEMP | path join 'cpp-linter-action-cache'
328327
329328
let args = [
@@ -351,4 +350,5 @@ runs:
351350
]
352351
353352
print $"\n(ansi purple)Running cpp-linter(ansi reset)"
354-
^$'($env.UV_INSTALL_DIR)/uv' run --project $action_path --directory (pwd) -v cpp-linter ...$args
353+
let uv_args = [run --no-sync --project $action_path --directory (pwd)]
354+
^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args -v cpp-linter ...$args

0 commit comments

Comments
 (0)