Skip to content

Commit ac70ea7

Browse files
committed
workflow fixed
1 parent 4bf6ed0 commit ac70ea7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ jobs:
6161
exit 1
6262
fi
6363
64-
# Use printf to handle newlines correctly and escape special characters
65-
printf "RELEASE_NOTES<<EOF\n%s\nEOF\n" "$release_notes" >> $GITHUB_ENV
64+
# Escape special characters and set the RELEASE_NOTES environment variable correctly
65+
release_notes_escaped=$(echo "$release_notes" | awk '{printf "%s\\n", $0}')
66+
echo "RELEASE_NOTES=$release_notes_escaped" >> $GITHUB_ENV
6667
source $GITHUB_ENV # Ensure the environment variable is available for subsequent steps
6768
6869
- name: Create zip file

0 commit comments

Comments
 (0)