From f50aa846ab9d7001325245e5ecc1ed36370586c4 Mon Sep 17 00:00:00 2001 From: Karsa Date: Mon, 23 Mar 2026 16:04:35 +0100 Subject: [PATCH] fix(github/workflows): fix latest_tag getter (#4191) --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31237a5ae..2e460ca55 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,7 +53,7 @@ jobs: - name: Get latest tag id: latest-tag - run: echo "LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_OUTPUT + run: echo "LATEST_TAG=$(git tag --sort=-v:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)" >> $GITHUB_OUTPUT - name: Log latest tag run: echo '${{ steps.latest-tag.outputs.LATEST_TAG }}'