diff --git a/.github/workflows/ci-cd-pipeline.yml b/.github/workflows/ci-cd-pipeline.yml index 553eb8b..426ba5c 100644 --- a/.github/workflows/ci-cd-pipeline.yml +++ b/.github/workflows/ci-cd-pipeline.yml @@ -100,8 +100,8 @@ jobs: - name: Calculate next tag id: tagger run: | - TAG=$(git describe --abbrev=0 --tags) - LATEST_TAG=$TAG + LATEST_TAG=$(git tag --sort=-v:refname | head -n 1) + echo "Last tag: $LATEST_TAG" if [[ "$LATEST_TAG" =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then major="${BASH_REMATCH[1]}" minor="${BASH_REMATCH[2]}"