Fix: Action - get tagver at shallow clone

This commit is contained in:
alstjr7375 2021-07-01 14:24:37 +09:00
parent faee6bfb95
commit df577a11fa

View file

@ -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