From aad0356c28b2588b1a9ee9defc2a6701c9e69487 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Thu, 29 Aug 2024 21:59:12 -0500 Subject: [PATCH] Update pre-release.yaml --- .github/workflows/pre-release.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index ef0866b6..a6cd0f43 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -101,9 +101,8 @@ jobs: id: prepare_body run: | $newChanges = '${{ steps.generate_notes.outputs.body }}' - $formattedChanges = "Changes since ${{ env.LATEST_TAG }}:`n`n$newChanges" - $escapedChanges = $formattedChanges -replace "`n", "%0A" -replace "'", "``'" -replace '"', '`"' - echo "body=$escapedChanges" >> $env:GITHUB_OUTPUT + $escapedChanges = $newChanges -replace '(?m)^\s*(.+)\s*$', '$1' -replace "'", "''" -replace '"', '\"' -replace "`n", "\n" -replace "`r", "" + echo "body=$escapedChanges" | Out-File -Append -Encoding utf8 $env:GITHUB_OUTPUT shell: pwsh - name: Create and Upload Release