CI: Try to fix tag recognition (again)

This commit is contained in:
tt2468 2021-08-30 01:46:52 -07:00
parent f37edbd71c
commit ac78acd28c

View File

@ -61,7 +61,7 @@ jobs:
git fetch --prune --unshallow git fetch --prune --unshallow
GIT_HASH=$(git rev-parse --short HEAD) GIT_HASH=$(git rev-parse --short HEAD)
echo "GIT_HASH=$GIT_HASH" >> $GITHUB_ENV 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 echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV
if [ "$GIT_TAG" ] ; then \ if [ "$GIT_TAG" ] ; then \
VERSION="$GIT_TAG" ; \ VERSION="$GIT_TAG" ; \
@ -224,7 +224,7 @@ jobs:
git fetch --prune --unshallow git fetch --prune --unshallow
GIT_HASH=$(git rev-parse --short HEAD) GIT_HASH=$(git rev-parse --short HEAD)
echo "GIT_HASH=$GIT_HASH" >> $GITHUB_ENV 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 echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV
if [ "$GIT_TAG" ] ; then \ if [ "$GIT_TAG" ] ; then \
VERSION="$GIT_TAG" ; \ VERSION="$GIT_TAG" ; \