From b7a097ce37f6e979d2969c08cda09a1dfc7c4940 Mon Sep 17 00:00:00 2001 From: Daniel Moore <9156191+drmrd@users.noreply.github.com> Date: Mon, 4 Dec 2023 19:51:00 -0500 Subject: [PATCH] Fix conditional expression in workflow Signed-off-by: Daniel Moore <9156191+drmrd@users.noreply.github.com> --- .github/workflows/cicd.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index a4708162..d06d80a1 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -40,12 +40,12 @@ jobs: - name: Ensure Docker image version is not referencing an existing release id: docker-image-version-check run: | - if ! [[ -s .env ]]; then + if ! [[ -s '.env' ]]; then echo 'Error: No .env file found.' exit 1 fi - if ! [[ grep -qE '^TAG=' .env ]]; then + if ! grep -qE '^TAG=' .env; then echo 'Error: .env must contain a TAG variable.' exit 1 fi