Skip to content

Commit cc0b06f

Browse files
shenxianpeng2bndy5
andcommitted
exit step early if using system default version
Co-authored-by: Brendan <2bndy5@gmail.com>
1 parent 97c2908 commit cc0b06f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,12 @@ runs:
378378
^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args
379379
380380
print $"\n(ansi purple)Ensuring clang-format and clang-tidy ${{ inputs.version }} are present(ansi reset)"
381-
let version = "${{ inputs.version }}" | into int
381+
let version_str = "${{ inputs.version }}"
382+
if ($version_str | is-empty) {
383+
print $"(ansi yellow)Using platform default clang tools (version not specified)(ansi reset)"
384+
exit 0
385+
}
386+
let version = $version_str | into int
382387
383388
$uv_args = [run --no-sync --project $action_path --directory (pwd)]
384389
if $verbosity {

0 commit comments

Comments
 (0)