Skip to content

Commit 3eac021

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

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
@@ -377,7 +377,12 @@ runs:
377377
^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args
378378
379379
print $"\n(ansi purple)Ensuring clang-format and clang-tidy ${{ inputs.version }} are present(ansi reset)"
380-
let version = "${{ inputs.version }}" | into int
380+
let version_str = "${{ inputs.version }}"
381+
if ($version_str | is-empty) {
382+
print $"(ansi yellow)Using platform default clang tools \(version not specified)(ansi reset)"
383+
exit 0
384+
}
385+
let version = $version_str | into int
381386
382387
$uv_args = [run --no-sync --project $action_path --directory (pwd)]
383388
if $verbosity {

0 commit comments

Comments
 (0)