Skip to content

Commit f53200c

Browse files
committed
chore(build): avoid warning
1 parent 466243b commit f53200c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build-prod.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,11 @@ jobs:
103103
-f tag_name="$TAG" -f previous_tag_name="$PREV_TAG" -q .body \
104104
)
105105
106-
# Save the release notes to an output variable
107-
echo "::set-output name=release_notes::$NOTES"
106+
# Escape newlines and special characters properly
107+
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"
108111
109112
- name: Update Release Notes in GitHub
110113
env:

0 commit comments

Comments
 (0)