From a443622af45238081718f5f9d1650421f1eb6f28 Mon Sep 17 00:00:00 2001 From: Lucas Cava Date: Mon, 15 Jul 2024 01:18:59 -0300 Subject: [PATCH] update latest tag --- .github/workflows/ci-cd-pipeline.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]}"