release-notes feature doesn't seems to work; release-notes.txt contents are incorrect

See the artifacts generated in this job: https://gitlab.com/baserock/ybd/builds/16640325