diff --git a/.circleci/config.yml b/.circleci/config.yml index 7558bae..3ca5566 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -54,7 +54,7 @@ jobs: fi printf 'LAST_COMMIT: %s\n' "${LAST_COMMIT}" touch ./.tag - VERSION="$(git describe --abbrev=0 --tags)" + VERSION="$(git tag -l --sort=-creatordate 'v*' | head -n 1)" # Diff to prevent pipeline re-runs. if [ -n "$(git diff "$VERSION")" ]; then VERSION=${VERSION:-'v0.0.0'}