Skip to content

Commit

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

0 comments on commit f95343e

Please sign in to comment.