From 5cba71c7f44d1efc10175eca69e15f4f0b648d0f Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Fri, 13 Oct 2023 13:05:10 +0100 Subject: [PATCH] Don't lint scripts if there is no bin directory --- .github/workflows/_docker-build-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_docker-build-deploy.yml b/.github/workflows/_docker-build-deploy.yml index 7d52b8c..7b1edf9 100644 --- a/.github/workflows/_docker-build-deploy.yml +++ b/.github/workflows/_docker-build-deploy.yml @@ -37,7 +37,7 @@ jobs: - name: ShellCheck run: | cd docker/${{ inputs.image-name }} - shellcheck --external-sources --exclude=SC1091 ./bin/* + [ -d "./bin" ] && shellcheck --external-sources --exclude=SC1091 ./bin/* shellcheck --external-sources --exclude=SC2148 ./Dockerfile - name: Log in to registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin