@@ -309,13 +309,30 @@ runs:
309309 ^curl -LsSf $"https://astral.sh/uv/($env.UV_VERSION)/install.sh" | sh
310310 }
311311
312+ let gh_action_debug = $env | get --optional 'ACTIONS_STEP_DEBUG'
313+ let action_verbosity = '${{ inputs.verbosity }}' == 'debug'
314+ let verbosity = (
315+ $action_verbosity
316+ or ($gh_action_debug == true)
317+ or ($gh_action_debug == 'true')
318+ )
319+
320+ mut uv_args = [sync --project $action_path --group action]
321+ if $verbosity {
322+ $uv_args = $uv_args | append '-v'
323+ }
324+
312325 print $"\n(ansi purple)Installing workflow dependencies(ansi reset)"
313- ^$'($env.UV_INSTALL_DIR)/uv' sync -v --project $action_path --group action
326+ ^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args
314327
315- print $"\n(ansi purple)Ensuring clang-format and clang-tidy ${{ inputs.version }} are present(ansi reset)"
316328 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
329+ $uv_args = [run --no-sync --project $action_path --directory (pwd)]
330+ if $verbosity {
331+ $uv_args = $uv_args | append '-v'
332+ }
333+
334+ print $"\n(ansi purple)Ensuring clang-format and clang-tidy ${{ inputs.version }} are present(ansi reset)"
335+ ^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args ...$cmd
319336
320337 - name : Run cpp-linter
321338 id : cpp-linter
@@ -348,7 +365,18 @@ runs:
348365 --passive-reviews="${{ inputs.passive-reviews }}"
349366 --jobs=${{ inputs.jobs }}
350367 ]
368+ mut uv_args = [run --no-sync --project $action_path --directory (pwd)]
369+
370+ let gh_action_debug = $env | get --optional 'ACTIONS_STEP_DEBUG'
371+ let action_verbosity = '${{ inputs.verbosity }}' == 'debug'
372+ let verbosity = (
373+ $action_verbosity
374+ or ($gh_action_debug == true)
375+ or ($gh_action_debug == 'true')
376+ )
377+ if $verbosity {
378+ $uv_args = $uv_args | append '-v'
379+ }
351380
352381 print $"\n(ansi purple)Running cpp-linter(ansi reset)"
353- let uv_args = [run --no-sync --project $action_path --directory (pwd)]
354- ^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args -v cpp-linter ...$args
382+ ^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args cpp-linter ...$args
0 commit comments