We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 466243b commit f53200cCopy full SHA for f53200c
.github/workflows/build-prod.yml
@@ -103,8 +103,11 @@ jobs:
103
-f tag_name="$TAG" -f previous_tag_name="$PREV_TAG" -q .body \
104
)
105
106
- # Save the release notes to an output variable
107
- echo "::set-output name=release_notes::$NOTES"
+ # Escape newlines and special characters properly
+ NOTES_ESCAPED=$(printf '%s' "$NOTES" | sed 's/%/%25/g; s/\r/%0D/g; s/\n/%0A/g')
108
+
109
+ # Save the release notes to the output file
110
+ echo "release_notes=$NOTES_ESCAPED" >> "$GITHUB_OUTPUT"
111
112
- name: Update Release Notes in GitHub
113
env:
0 commit comments