From bfc4263fef7506a897940e2f1032c0007dcc66dd Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Tue, 9 Jan 2024 15:17:11 -0600 Subject: [PATCH] Remove empty repo URLs with keepempty --- action.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 64ffcd0..2e5dd04 100644 --- a/action.yml +++ b/action.yml @@ -52,9 +52,8 @@ runs: # If provided add local registries if !isempty("${{ inputs.localregistry }}") - local_repos = split("${{ inputs.localregistry }}", "\n") .|> string + local_repos = split("${{ inputs.localregistry }}", "\n"; keepempty=false) .|> string for repo_url in local_repos - isempty(repo_url) && continue # https://github.com/JuliaLang/Pkg.jl/issues/3753 if !any(r -> r.repo == repo_url, Pkg.Registry.reachable_registries()) Pkg.Registry.add(Pkg.RegistrySpec(; url = repo_url))