diff --git a/.github/workflows/version-up.sh b/.github/workflows/version-up.sh index 9a4bf2e..3289247 100755 --- a/.github/workflows/version-up.sh +++ b/.github/workflows/version-up.sh @@ -4,7 +4,7 @@ ## get highest version tag for all branches function highest_tag(){ - local TAG=$(git tag --list 2>/dev/null | tail -n1 2>/dev/null) + local TAG=$(git describe --tags `git rev-list --tags --max-count=1`) echo "$TAG" }