ci(github): fix nightly PPA package version

This commit is contained in:
Oleg Shparber
2026-07-31 19:40:03 +03:00
parent fc8da85fb1
commit 366d6f47c3
2 changed files with 12 additions and 6 deletions
+5 -1
View File
@@ -38,13 +38,17 @@ jobs:
next_version="${major}.${minor}.${next_patch}"
sed -i "/^project(/,/^)/ s/${version}/${next_version}/" CMakeLists.txt
# The nightly recipe reads this version via {debupstream}.
sed -i "1s/(1:[^-]*-/(1:${next_version}-/" pkg/ppa/debian/changelog
echo "NEXT_VERSION=${next_version}" >> $GITHUB_ENV
- name: Commit & Push
run: |
git config user.name "zealdocs-ci[bot]"
git config user.email "273095467+zealdocs-ci[bot]@users.noreply.github.com"
git add CMakeLists.txt
git add CMakeLists.txt pkg/ppa/debian/changelog
git diff --staged --quiet && echo "::error::Version bump failed, no changes detected." && exit 1
git commit -m "chore: bump version to ${{ env.NEXT_VERSION }}"
git push
+7 -5
View File
@@ -1,8 +1,10 @@
zeal (1:0.8.2-0ubuntu1) UNRELEASED; urgency=medium
zeal (1:0.9.2-0ubuntu1) UNRELEASED; urgency=medium
* Placeholder entry. The real version and target series are set at upload
time by debian/rules consumers: the release workflow rewrites this with
`dch` per series, and the Launchpad nightly recipe derives the version
from its `deb-version` template. See pkg/ppa/README.md.
* Placeholder entry, except for the version above. Releases rewrite this file
with `dch` per series in publish-ppa.yaml, but the Launchpad nightly recipe
reads that version through `{debupstream}` and appends `-0~{revtime}`. It
must name the next, unreleased version, so a nightly sorts above the last
release and below the next one. Keep it in step with CMakeLists.txt;
chore-version-bump.yaml does that on release. See pkg/ppa/README.md.
-- Zeal Release <release@zealdocs.org> Thu, 01 May 2025 00:00:00 +0000