From 0c16a46f651e3b83354857960985cbe142403c11 Mon Sep 17 00:00:00 2001 From: Pierce Thompson Date: Wed, 3 Apr 2024 01:26:08 -0400 Subject: [PATCH] Simplify the setting of IN_GIT_TAGGED in the docker workflow --- .github/workflows/docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 4e63a3e..66eb7c8 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -45,7 +45,7 @@ jobs: echo "IN_GIT_HASH=$(git rev-parse --short HEAD)" >> .env echo "IN_GIT_DIRTY=$([[ -n $(git status --porcelain) ]] && echo true || echo false)" >> .env echo "IN_GIT_TAG=$(git describe --tags --exact-match)" >> .env - echo "IN_GIT_TAGGED=$(git describe --tags --exact-match > /dev/null 2>&1; [ $? -eq 0 ] && echo "true" || echo "false")" >> .env + echo "IN_GIT_TAGGED=$([[ -n $(git describe --tags --exact-match) ]] && echo true || echo false)" >> .env echo "IN_GIT_REMOTE_URL=$(git remote get-url origin)" >> .env - name: Build & Push