Skip to content

Commit

Permalink
Fix: Action - get tagver at shallow clone
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Jul 1, 2021
1 parent faee6bf commit df577a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df577a1

Please sign in to comment.