From 103c288259d6f7d77f8e7a2e2809e83f603e3bf6 Mon Sep 17 00:00:00 2001 From: yaroslavmokflmg Date: Thu, 9 Jul 2026 11:16:22 -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 e45591fa6d..fe06d0d67a 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 ac32e4e6d37894d76905058bb451ce56073f107e Mon Sep 17 00:00:00 2001 From: yaroslavmokflmg Date: Thu, 9 Jul 2026 11:30:06 -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 fe06d0d67a..d493a5bedb 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"