From 93acad015a9e6f634eead8feed6faed0663510b2 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Tue, 9 Jan 2024 16:12:56 -0600 Subject: [PATCH] Prefer using ENV for local registry to make CI output easier to read --- action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index f5ef790..8ddd11b 100644 --- a/action.yml +++ b/action.yml @@ -58,8 +58,8 @@ runs: end # If provided add local registries - if !isempty("${{ inputs.localregistry }}") - local_repos = split("${{ inputs.localregistry }}", "\n"; keepempty=false) .|> string + if !isempty(ENV["LOCAL_REGISTRY"]) + local_repos = split(ENV["LOCAL_REGISTRY"], "\n"; keepempty=false) .|> string for repo_url in local_repos # https://github.com/JuliaLang/Pkg.jl/issues/3753 if !any(r -> r.repo == repo_url, reachable_registries()) @@ -74,3 +74,4 @@ runs: env: JULIA_PKG_PRECOMPILE_AUTO: "${{ inputs.precompile }}" GITHUB_TOKEN: ${{ github.token }} + LOCAL_REGISTRY: ${{ inputs.localregistry }}