@@ -312,10 +312,17 @@ runs:
312312 print $"\n(ansi purple)Installing workflow dependencies(ansi reset)"
313313 ^$'($env.UV_INSTALL_DIR)/uv' sync -v --project $action_path --group action
314314
315- print $"\n(ansi purple)Ensuring clang-format and clang-tidy ${{ inputs.version }} are present(ansi reset)"
316315 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
316+ mut uv_args = [run --no-sync --project $action_path --directory (pwd)]
317+
318+ let gh_action_debug = $env | get --optional 'ACTIONS_STEP_DEBUG'
319+ let action_verbosity = '${{ inputs.verbosity }}' == 'debug'
320+ if $action_verbosity or ($gh_action_debug == true) or ($gh_action_debug == 'true') {
321+ $uv_args = $uv_args | append '-v'
322+ }
323+
324+ print $"\n(ansi purple)Ensuring clang-format and clang-tidy ${{ inputs.version }} are present(ansi reset)"
325+ ^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args ...$cmd
319326
320327 - name : Run cpp-linter
321328 id : cpp-linter
@@ -348,7 +355,13 @@ runs:
348355 --passive-reviews="${{ inputs.passive-reviews }}"
349356 --jobs=${{ inputs.jobs }}
350357 ]
358+ mut uv_args = [run --no-sync --project $action_path --directory (pwd)]
359+
360+ let gh_action_debug = $env | get --optional 'ACTIONS_STEP_DEBUG'
361+ let action_verbosity = '${{ inputs.verbosity }}' == 'debug'
362+ if $action_verbosity or ($gh_action_debug == true) or ($gh_action_debug == 'true') {
363+ $uv_args = $uv_args | append '-v'
364+ }
351365
352366 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
367+ ^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args cpp-linter ...$args
0 commit comments