You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Add PackageReleaseNotes from GitHub release if available
74
71
if [ "${{ github.event_name }}" == "release" ] && [ -f release_notes.txt ]; then
75
72
# Read release notes and escape for MSBuild property
76
-
# MSBuild properties need special characters escaped, newlines converted to semicolons or removed
73
+
# MSBuild properties need special characters escaped, newlines converted to spaces
77
74
RELEASE_NOTES=$(cat release_notes.txt)
78
75
# Escape XML special characters and convert newlines to spaces (MSBuild property limitation)
79
-
RELEASE_NOTES_ESCAPED=$(echo "$RELEASE_NOTES" | sed ':a;N;$!ba;s/\n/ /g' | sed 's/&/\&/g' | sed 's/</\</g' | sed 's/>/\>/g' | sed 's/"/\\"/g')
RELEASE_NOTES_ESCAPED=$(echo "$RELEASE_NOTES" | sed ':a;N;$!ba;s/\n/ /g' | sed 's/&/\&/g' | sed 's/</\</g' | sed 's/>/\>/g' | sed 's/"/\\"/g' | sed "s/'/\\'/g")
0 commit comments