From 50cd46359621630815edb5aadd30964999637b31 Mon Sep 17 00:00:00 2001 From: Altan Orhon Date: Thu, 19 Oct 2023 19:30:15 -0700 Subject: [PATCH] Updated workflow --- .github/workflows/apptainer-image.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/apptainer-image.yml b/.github/workflows/apptainer-image.yml index 3813a58..3692f12 100644 --- a/.github/workflows/apptainer-image.yml +++ b/.github/workflows/apptainer-image.yml @@ -18,10 +18,7 @@ jobs: run: | cont_name=$(echo "${GITHUB_REF_NAME:-}" | sed -E 's/^sif-//; s/-.*$//') echo "Container name is ${cont_name:-}" - if [ ! -r "${cont_name:-}/Singularity" ]; then - echo "No container named ${cont_name:-} found." - exit 1 - fi + [ -d "${cont_name:-}" ] || { echo "No container named ${cont_name:-} found."; exit 1; } echo "cont_name=$cont_name" >> $GITHUB_ENV - name: Delete GitHub AGENT_TOOLSDIRECTORY to free space run: |