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 1be0a58 commit cf878acCopy full SHA for cf878ac
.github/workflows/dist.yml
@@ -135,6 +135,8 @@ jobs:
135
\"tag_name\": \"${{ github.ref_name }}\",
136
\"previous_tag_name\": \"$latest_release_tag\"
137
}" | jq -r '.body')
138
+ # escape special characters for json
139
+ release_notes=$(jq -R -s '.' <<< "$release_notes")
140
curl -L \
141
-X POST \
142
-H "Accept: application/vnd.github+json" \
@@ -144,7 +146,7 @@ jobs:
144
146
-d "{
145
147
148
\"prerelease\": ${{ contains(github.ref, 'beta') || contains(github.ref, 'rc') }},
- \"body\": \"$release_notes\"
149
+ \"body\": $release_notes
150
}"
151
- name: Create release assets
152
uses: softprops/action-gh-release@v2
0 commit comments