Skip to content

Commit 5a80bdf

Browse files
committed
Updates for release note parsing
1 parent 62a6f34 commit 5a80bdf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ jobs:
9494
echo -e "\n### Commits:\n" >> release_notes.md
9595
git log --pretty=format:"- %s (%h)" $commit_range >> release_notes.md
9696
97-
# Escape multiline release notes for GITHUB_ENV
98-
escaped_notes=$(awk '{printf "%s\\n", $0}' release_notes.md)
99-
echo "release_notes=${escaped_notes}" >> $GITHUB_ENV
97+
# Preserve multiline release notes into GITHUB_ENV using heredoc (keeps real newlines)
98+
echo "release_notes<<EOF" >> $GITHUB_ENV
99+
cat release_notes.md >> $GITHUB_ENV
100+
echo "EOF" >> $GITHUB_ENV
100101
101102
- name: Create and push tag (Main Branch Only)
102103
if: github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)