We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42b7602 commit 48f6dadCopy full SHA for 48f6dad
.github/workflows/release.yml
@@ -102,9 +102,11 @@ jobs:
102
git log --pretty=format:"- %s (%h)" $commit_range >> release_notes.md || true
103
104
# Export the release notes into GITHUB_ENV as a multiline variable so newlines are preserved
105
- echo "release_notes<<EOF" >> $GITHUB_ENV
+ # Generate a unique delimiter to avoid accidental matches inside the content
106
+ DELIM="RELEASE_NOTES_$(date +%s)"
107
+ echo "release_notes<<${DELIM}" >> $GITHUB_ENV
108
cat release_notes.md >> $GITHUB_ENV
- echo "EOF" >> $GITHUB_ENV
109
+ echo "${DELIM}" >> $GITHUB_ENV
110
111
- name: Create and push tag (Main Branch Only)
112
if: github.ref == 'refs/heads/main'
0 commit comments