From 85bb6c2ad2f109da14b45d032196bafb2cce58d7 Mon Sep 17 00:00:00 2001 From: Stephan Date: Fri, 4 Jun 2021 12:25:57 +0200 Subject: [PATCH] fix --- .github/workflows/exp.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/exp.yml b/.github/workflows/exp.yml index 5ab2dc9..c6d2754 100644 --- a/.github/workflows/exp.yml +++ b/.github/workflows/exp.yml @@ -37,15 +37,15 @@ jobs: VERSION=${BRANCH#release/} if [ "$VERSION" != "$BRANCH" ]; then echo "Triggered by commit in version $VERSION release branch $BRANCH" - #git fetch origin refs/tags/v$VERSION:refs/tags/v$VERSION - #if [ $? -ne 0 ]; then - # echo "Tag v$VERSION does not exist" - #else - #TAGSHA=$(git rev-parse v$VERSION) - TAGSHA=$(git rev-parse ref/tags/v$VERSION) + git fetch origin refs/tags/v$VERSION:refs/tags/v$VERSION if [ $? -ne 0 ]; then echo "Tag v$VERSION does not exist" else + TAGSHA=$(git rev-parse v$VERSION) + #TAGSHA=$(git rev-parse ref/tags/v$VERSION) + #if [ $? -ne 0 ]; then + # echo "Tag v$VERSION does not exist" + #else echo "FOUND TAG $TAGSHA" if [ "$TAGSHA" != "${{ github.sha }}" ]; then echo "TAG v$VERSION exists on another commit (${{ github.sha }}) : error"