Use consisten indentation

This commit is contained in:
Curtis Vogt
2024-01-09 15:16:47 -06:00
parent ab02b8f55c
commit 320bd0725f

View File

@@ -41,25 +41,25 @@ runs:
VERSION >= v"1.7-" && (ENV["JULIA_PKG_USE_CLI_GIT"] = ${{ inputs.git_cli }})
if VERSION < v"1.7-" && ${{ inputs.git_cli }} == true
printstyled("::notice::JULIA_PKG_USE_CLI_GIT requires Julia >= 1.7. Using default LibGit2 git-interface instead! \n"; color = :yellow)
printstyled("::notice::JULIA_PKG_USE_CLI_GIT requires Julia >= 1.7. Using default LibGit2 git-interface instead! \n"; color = :yellow)
end
if VERSION >= v"1.5-"
if !any(r -> r.name == "General", Pkg.Registry.reachable_registries())
Pkg.Registry.add("General")
Pkg.Registry.add("General")
end
# If provided add local registries
if !isempty("${{ inputs.localregistry }}")
local_repos = split("${{ inputs.localregistry }}", "\n") .|> 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))
local_repos = split("${{ inputs.localregistry }}", "\n") .|> 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))
end
end
end
end
end