Skip to content

Commit b3b8633

Browse files
committed
Support multiline changelogs
1 parent adf8139 commit b3b8633

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/trunk-release-tag.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@ jobs:
5555
- name: Get changelog entries
5656
id: changelog
5757
working-directory: ./docs
58-
run: echo "::set-output name=changes::$(grep -A100 -m1 -e '== Changelog ==' readme.txt)"
58+
run:
59+
changelog=$(grep -A100 -m1 -e '== Changelog ==' readme.txt)
60+
changelog="${changelog//'%'/'%25'}"
61+
changelog="${changelog//$'\n'/'%0A'}"
62+
changelog="${changelog//$'\r'/'%0D'}"
63+
echo $changelog
64+
echo "::set-output name=changes::$changelog"
5965

6066
- name: Create release
6167
id: create_release

0 commit comments

Comments
 (0)