Release: enforce root version across component feeds

This commit is contained in:
faumaray committed 2026-07-28 21:41:55 +03:00
1 parent f78004e822
commit 1305d37fae
6 files changed
+139 -7

No files matched your search

+13
View File
@@ -125,6 +125,7 @@ jobs:
shell: bash
env:
TAG: ${{ gitea.ref_name }}
API_URL: ${{ gitea.api_url }}
SERVER_URL: ${{ gitea.server_url }}
REPOSITORY: ${{ gitea.repository }}
run: |
@@ -132,6 +133,18 @@ jobs:
version=${TAG#v}
test "$version" != "$TAG"
python3 scripts/validate-semver.py "$version"
project_version=$(
python3 scripts/gitea_release.py \
--api-url "$API_URL" \
cmake-project-version \
--cmake-file CMakeLists.txt
)
tag_base=${version%%[-+]*}
if [[ "$tag_base" != "$project_version" ]]; then
printf 'release tag %s does not match root CMake project version %s\n' \
"$TAG" "$project_version" >&2
exit 1
fi
channel=stable
prerelease=false
if [[ "$version" == *-* ]]; then