ci: fix release notes generation in release workflow
Deploy static content to Pages / deploy (push) Has been cancelled
codeberg-mirror / mirror (push) Has been cancelled
Install.sh / build (macos-latest) (push) Has been cancelled
Install.sh / build (ubuntu-latest) (push) Has been cancelled
Linux / build-linux (push) Has been cancelled
MacOS / build-macos (push) Has been cancelled
Windows / build-windows (push) Has been cancelled

prepare job failed: git-cliff --latest crashed with 'trim_start_matches on
null' because the checkout was shallow (no tags/history) so no release existed.

- checkout prepare with fetch-depth: 0 + fetch-tags so git-cliff sees full
  history and tags (also fixes an otherwise-truncated CHANGELOG)
- generate release notes with --unreleased --tag v$VERSION instead of --latest:
  --latest selected the previous real tag (stale notes); --unreleased --tag
  renders the version being released
This commit is contained in:
Christian Visintin
2026-06-07 19:16:00 +02:00
parent 930e76814f
commit f6d65cf09d
2 changed files with 48 additions and 25 deletions
+1 -1
View File
@@ -53,6 +53,6 @@ Features:
</description>
</metadata>
<files>
<file src="tools\**" target="tools" />
<file src="tools/**" target="tools" />
</files>
</package>