From ac78acd28c36ae405277d64421385d80c84f03f0 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Mon, 30 Aug 2021 01:46:52 -0700 Subject: [PATCH] CI: Try to fix tag recognition (again) --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b14ab442..1b47445f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -61,7 +61,7 @@ jobs: git fetch --prune --unshallow GIT_HASH=$(git rev-parse --short HEAD) echo "GIT_HASH=$GIT_HASH" >> $GITHUB_ENV - GIT_TAG=$(git describe --tags --abbrev=0) + GIT_TAG=$(git describe --exact-match --tags --abbrev=0) || GIT_TAG="" echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV if [ "$GIT_TAG" ] ; then \ VERSION="$GIT_TAG" ; \ @@ -224,7 +224,7 @@ jobs: git fetch --prune --unshallow GIT_HASH=$(git rev-parse --short HEAD) echo "GIT_HASH=$GIT_HASH" >> $GITHUB_ENV - GIT_TAG=$(git describe --tags --abbrev=0) + GIT_TAG=$(git describe --exact-match --tags --abbrev=0) || GIT_TAG="" echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV if [ "$GIT_TAG" ] ; then \ VERSION="$GIT_TAG" ; \