From d61f2a1d6e3db50e0656f0e8741da5beb787d1d0 Mon Sep 17 00:00:00 2001 From: Ivan Khropachov Date: Wed, 8 Jul 2026 22:39:42 +0300 Subject: [PATCH] Fix Latest fetch --- .github/workflows/version.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index be5228daa65..8479c66e62d 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -36,10 +36,8 @@ jobs: run: | set -euo pipefail - latest=$(gh release list --limit 100 --exclude-drafts --exclude-pre-releases \ - --json tagName --jq '.[].tagName' \ - | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | grep -v '^9\.9\.' | sort -V | tail -1 || true) - latest=${latest:-0.0.0} + latest=$(gh api "repos/$GITHUB_REPOSITORY/releases/latest" --jq .tag_name) + [[ "$latest" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || { echo "Latest release tag '${latest}' is not x.y.z"; exit 1; } IFS='.' read -r cur_major cur_minor cur_patch <<< "$latest" if [ -z "$INPUT_VERSION" ]; then