Fix release notes automation
MODIFY
.github/workflows/release.yml
.github/workflows/release.yml
@@ -95,6 +95,7 @@ jobs:
EOF
sed -n '/^## Version ${{ steps.set-versions.outputs.release-version }}/,/^## Version /p' CHANGELOG.md \
+ | tail -n +2 \
| head -n -1 \
| perl -0pe 's/^\n+//g' \
| perl -0pe 's/\n+$/\n/g' \

Fix release notes automation (#5569)