From f95343e2bbc020b2ff0dbeda7bae77d7db81101e Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Sun, 6 Oct 2024 09:56:55 +0100 Subject: [PATCH] Ignore empty lines on other_names --- entrypoint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.py b/entrypoint.py index 70b0035..d59843b 100755 --- a/entrypoint.py +++ b/entrypoint.py @@ -84,7 +84,8 @@ def main() -> None: # noqa: C901,PLR0912,PLR0915 if k.startswith("INPUT_"): core.info(f"Env var {k}={v}") try: - other_names = core.get_input("other_names", required=False).split("\n") + # ignore empty lines + other_names = [x for x in core.get_input("other_names", required=False).split("\n") if x] platforms = get_platforms() core.info(f"Effective platforms: {platforms}") core.info(f"Platform map: {PLATFORM_MAP}")