Skip to content

Commit 3d8011f

Browse files
authored
Ignore empty lines on other_names (#42)
1 parent c78396b commit 3d8011f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

entrypoint.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ def main() -> None: # noqa: C901,PLR0912,PLR0915
8484
if k.startswith("INPUT_"):
8585
core.info(f"Env var {k}={v}")
8686
try:
87-
other_names = core.get_input("other_names", required=False).split("\n")
87+
# ignore empty lines
88+
other_names = [
89+
x for x in core.get_input("other_names", required=False).split("\n") if x
90+
]
8891
platforms = get_platforms()
8992
core.info(f"Effective platforms: {platforms}")
9093
core.info(f"Platform map: {PLATFORM_MAP}")

0 commit comments

Comments
 (0)