From abe91702a8f645cd5142851fdba8248fe0bf951c Mon Sep 17 00:00:00 2001 From: Andreas Heinrich Date: Mon, 8 Jul 2024 15:10:33 +0200 Subject: [PATCH] fix Signed-off-by: Andreas Heinrich --- .github/workflows/deploy-single-docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-single-docker-image.yml b/.github/workflows/deploy-single-docker-image.yml index a16028d..4f8fb8e 100644 --- a/.github/workflows/deploy-single-docker-image.yml +++ b/.github/workflows/deploy-single-docker-image.yml @@ -100,9 +100,9 @@ jobs: run: | import os list_of_paths = """${{ inputs.depends_on_paths }}""".split("\n") + # remove all empty lines + list_of_paths = list(filter(None, list_of_paths)) for path in list_of_paths: - if path == "": - continue if os.path.isdir(f"{path}"): path = f"{path}/*" elif os.path.isfile(f"{path}"):