Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix release notes API call with heredoc syntax (#27096)

Joseph T. Lyons2491426be79d
diff --git a/.github/workflows/community_release_actions.yml b/.github/workflows/community_release_actions.yml
index 6a87cef10d6..9d1aef8b231 100644
--- a/.github/workflows/community_release_actions.yml
+++ b/.github/workflows/community_release_actions.yml
@@ -61,7 +61,9 @@ jobs:
curl -X POST "https://zed.dev/api/send_release_notes_email" \
-H "Authorization: Bearer ${{ secrets.RELEASE_NOTES_API_TOKEN }}" \
-H "Content-Type: application/json" \
- -d '{
- "version": "${{ github.event.release.tag_name }}",
- "markdown_body": ${{ toJSON(github.event.release.body) }}
- }'
+ -d @- <<-JSON
+ {
+ "version": "${{ github.event.release.tag_name }}",
+ "markdown_body": ${{ toJSON(github.event.release.body) }}
+ }
+ JSON