From df577a11faf8817a9e8225e2eb17b1a58a947482 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Thu, 1 Jul 2021 14:24:37 +0900 Subject: [PATCH] Fix: Action - get tagver at shallow clone --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8d5270cf..def15e60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,8 +23,9 @@ jobs: rm -f LEPTON # or BRANCH=$(git rev-parse --abbrev-ref HEAD) + # or TAGVER=$(git describe --tags --abbrev=0) BRANCH=${{ matrix.branch }} - TAGVER=$(git describe --tags --abbrev=0) + TAGVER=${GITHUB_REF#refs/*/} echo -e "Ver=${TAGVER}\nBranch=${BRANCH}" > LEPTON