From 82ce187bfcfe6b642ec293a93a8340e6d982217a Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Fri, 28 Mar 2025 11:42:37 -0400 Subject: [PATCH] Preserve newlines in release notes email (#27670) Release Notes: - N/A --- .github/workflows/community_release_actions.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/community_release_actions.yml b/.github/workflows/community_release_actions.yml index 115904e7ae..3e253978b7 100644 --- a/.github/workflows/community_release_actions.yml +++ b/.github/workflows/community_release_actions.yml @@ -59,7 +59,9 @@ jobs: if: steps.check-promotion-from-preview.outputs.was_promoted_from_preview == 'true' run: | TAG="${{ github.event.release.tag_name }}" - echo \"${{ toJSON(github.event.release.body) }}\" > release_body.txt + cat << 'EOF' > release_body.txt + ${{ github.event.release.body }} + EOF jq -n --arg tag "$TAG" --rawfile body release_body.txt '{version: $tag, markdown_body: $body}' \ > release_data.json curl -X POST "https://zed.dev/api/send_release_notes_email" \