Skip to content

Commit

Permalink
Ignore empty lines on other_names (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Oct 6, 2024
1 parent c78396b commit 3d8011f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ 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}")
Expand Down

0 comments on commit 3d8011f

Please sign in to comment.