Fix changelog output

This change repairs the changelog output generated for the release.
Multiline text requires custom handling with the new GITHUB_OUTPUT
property.
This commit is contained in:
Fabian Mastenbroek 2022-12-14 01:00:18 +00:00
parent 6f8820fd3b
commit e31be78264
No known key found for this signature in database
GPG key ID: 405FC6F81F0A7B85
2 changed files with 2 additions and 8 deletions

View file

@ -67,10 +67,7 @@ jobs:
run: |
echo "release=$(scripts/version.sh)" >> $GITHUB_OUTPUT
changelog=$(dpkg-parsechangelog -c 1 -l debian/changelog)
changelog="${changelog//'%'/'%25'}"
changelog="${changelog//$'\n'/'%0A'}"
changelog="${changelog//$'\r'/'%0D'}"
echo "changelog=$changelog" >> $GITHUB_OUTPUT
echo "changelog<<EOF\n$changelog\nEOF" >> $GITHUB_OUTPUT
- name: Create Release
uses: ncipollo/release-action@v1
with:

View file

@ -36,10 +36,7 @@ jobs:
echo "version=$(scripts/version.sh -L)" >> $GITHUB_OUTPUT
echo "full=$(scripts/version.sh)" >> $GITHUB_OUTPUT
changelog=$(dpkg-parsechangelog -c 1 -l debian/changelog)
changelog="${changelog//'%'/'%25'}"
changelog="${changelog//$'\n'/'%0A'}"
changelog="${changelog//$'\r'/'%0D'}"
echo "changelog=$changelog" >> $GITHUB_OUTPUT
echo "changelog<<EOF\n$changelog\nEOF" >> $GITHUB_OUTPUT
echo "branch=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4