Skip to content

Commit 48f6dad

Browse files
committed
Fix release notes processing in release.yml
1 parent 42b7602 commit 48f6dad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,11 @@ jobs:
102102
git log --pretty=format:"- %s (%h)" $commit_range >> release_notes.md || true
103103
104104
# Export the release notes into GITHUB_ENV as a multiline variable so newlines are preserved
105-
echo "release_notes<<EOF" >> $GITHUB_ENV
105+
# Generate a unique delimiter to avoid accidental matches inside the content
106+
DELIM="RELEASE_NOTES_$(date +%s)"
107+
echo "release_notes<<${DELIM}" >> $GITHUB_ENV
106108
cat release_notes.md >> $GITHUB_ENV
107-
echo "EOF" >> $GITHUB_ENV
109+
echo "${DELIM}" >> $GITHUB_ENV
108110
109111
- name: Create and push tag (Main Branch Only)
110112
if: github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)