From d7a38f96b079b29acda3518b843113d336ad7bbf Mon Sep 17 00:00:00 2001 From: yaroslavmokflmg Date: Thu, 9 Jul 2026 11:16:24 -0400 Subject: [PATCH 1/2] ci(version): unify base fetch with saas repos --- .github/workflows/version.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index e45591fa..fe06d0d6 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -37,8 +37,10 @@ jobs: run: | set -euo pipefail - 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; } + latest=$(gh release list --limit 100 --exclude-drafts --exclude-pre-releases \ + --json tagName --jq '.[].tagName' \ + | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -1) + [[ -n "$latest" ]] || { echo "No x.y.z releases found"; exit 1; } IFS='.' read -r cur_major cur_minor cur_patch <<< "$latest" if [ -z "$INPUT_VERSION" ]; then From d73742d11b9f287d8c5f8a29ddc57757cba88571 Mon Sep 17 00:00:00 2001 From: yaroslavmokflmg Date: Thu, 9 Jul 2026 11:30:07 -0400 Subject: [PATCH 2/2] ci(version): exclude 9.9.x placeholder releases from version base --- .github/workflows/version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index fe06d0d6..d493a5be 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -39,7 +39,7 @@ jobs: latest=$(gh release list --limit 100 --exclude-drafts --exclude-pre-releases \ --json tagName --jq '.[].tagName' \ - | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -1) + | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | grep -v '^9\.9\.' | sort -V | tail -1) [[ -n "$latest" ]] || { echo "No x.y.z releases found"; exit 1; } IFS='.' read -r cur_major cur_minor cur_patch <<< "$latest"