From 77d43995078f29d508d8bfaf90170fc54893ba0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Dinis=20Ferreira?= Date: Sat, 26 Sep 2026 01:55:15 +0200 Subject: [PATCH] fix(release): compute the next version from tags reachable from the branch The release workflow took the highest v* tag in the whole repository, so a release from a maintenance branch computed the next version of master's line (for example v19.0.1 instead of v18.0.1) and then failed the feature.xml version check. Restrict the lookup to tags merged into the released HEAD; on master the result is unchanged. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5ec0e0dbd..e21a14438 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,7 +41,7 @@ jobs: - name: Compute next version id: version run: | - LATEST=$(git tag --list 'v*' --sort=-version:refname | head -1) + LATEST=$(git tag --list 'v*' --merged HEAD --sort=-version:refname | head -1) if [ -z "$LATEST" ]; then LATEST="v0.0.0" fi