From 5fe21200c7c78eb25594bf70d4886d72d28b5d15 Mon Sep 17 00:00:00 2001 From: Andreas Heinrich Date: Mon, 8 Jul 2024 14:35:55 +0200 Subject: [PATCH] ignore empty lines Signed-off-by: Andreas Heinrich --- .github/workflows/deploy-single-docker-image.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-single-docker-image.yml b/.github/workflows/deploy-single-docker-image.yml index cea7cbb..f11f53d 100644 --- a/.github/workflows/deploy-single-docker-image.yml +++ b/.github/workflows/deploy-single-docker-image.yml @@ -79,6 +79,8 @@ jobs: import os list_of_paths = """${{ inputs.depends_on_paths }}""".split("\n") for path in list_of_paths: + if path == "": + continue if os.path.isdir(f"{path}"): path = f"{path}/*" elif os.path.isfile(f"{path}"):