CI: pub-release finds the previous release by its tag, not the stored target commit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-11-27 19:21:33 +01:00
1 parent 540f87ca77
commit 736691cbd2
1 file changed
+5
+5
View File
@@ -322,6 +322,11 @@ jobs:
# changelog against the newest older release that HEAD descends from
prev="" base=""
while read -r t c; do
# the tag, not the release's target_commitish: Gitea keeps the
# commitish from creation, and after a rewrite of the public
# history (26. 11. 2026) it named commits no longer in it -- no
# base was found and the notes listed the last 20 commits
c=$(git rev-parse -q --verify "refs/tags/$t^{commit}" 2>/dev/null || echo "$c")
if [ "$c" != "$SHA" ] && git merge-base --is-ancestor "$c" "$SHA" 2>/dev/null; then
prev=$t base=$c
break