From 325cd86adb965b9b85bcaccca4580e7d333c80a1 Mon Sep 17 00:00:00 2001 From: yaroslavmokflmg Date: Thu, 9 Jul 2026 11:16:29 -0400 Subject: [PATCH 1/2] ci(version): unify base fetch with saas repos --- .github/workflows/version.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 8479c66e62d..fe06d0d67a5 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -33,11 +33,14 @@ jobs: env: INPUT_VERSION: ${{ inputs.version }} GH_TOKEN: ${{ github.token }} + GH_REPO: ${{ github.repository }} 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 df4c7a0926f300fb834e7bef7a054cf81ff4ba45 Mon Sep 17 00:00:00 2001 From: yaroslavmokflmg Date: Thu, 9 Jul 2026 11:30:12 -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 fe06d0d67a5..d493a5bedb1 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"