From d552ceb04e3cf10befe62d7af3cf5c41d0ccb5b5 Mon Sep 17 00:00:00 2001 From: Ievgenii Shepeliuk Date: Thu, 20 Jun 2024 21:50:26 +0300 Subject: [PATCH] chore: released --- cog.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cog.sh b/cog.sh index d91870c..7cc7d2d 100755 --- a/cog.sh +++ b/cog.sh @@ -18,12 +18,12 @@ git config --global user.email "${GIT_USER_EMAIL}" cog --version LATEST_VERSION=$(cog get-version 2>/dev/null || echo '') -echo $LATEST_VERSION +echo "LATEST=${LATEST_VERSION}" if [ "${CHECK}" = "true" ]; then if [ "${LATEST_TAG_ONLY}" = "true" ]; then - if [ "$(git describe --tags --abbrev=0)" ]; then - message="Checking commits from $(git describe --tags --abbrev=0)" + if [ -n "${LATEST_VERSION}" ]; then + message="Checking commits from ${LATEST_VERSION}" else message="No tag found checking history from first commit" fi