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:
1 parent
540f87ca77
commit
736691cbd2
1 file changed
+5
@@ -322,6 +322,11 @@ jobs:
|
|||||||
# changelog against the newest older release that HEAD descends from
|
# changelog against the newest older release that HEAD descends from
|
||||||
prev="" base=""
|
prev="" base=""
|
||||||
while read -r t c; do
|
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
|
if [ "$c" != "$SHA" ] && git merge-base --is-ancestor "$c" "$SHA" 2>/dev/null; then
|
||||||
prev=$t base=$c
|
prev=$t base=$c
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in new issue
Block a user