Update pre-release.yaml

This commit is contained in:
Chris Titus 2024-08-29 21:48:09 -05:00
parent 2ba5572b6c
commit 01515db90f

View File

@ -102,7 +102,7 @@ jobs:
run: | run: |
$newChanges = '${{ steps.generate_notes.outputs.body }}' $newChanges = '${{ steps.generate_notes.outputs.body }}'
$formattedChanges = "Changes since ${{ env.LATEST_TAG }}:`n`n$newChanges" $formattedChanges = "Changes since ${{ env.LATEST_TAG }}:`n`n$newChanges"
$escapedChanges = $formattedChanges -replace '%', '%25' -replace '\n', '%0A' -replace '\r', '%0D' -replace "'", '%27' -replace '"', '%22' $escapedChanges = $formattedChanges -replace "`n", "%0A" -replace "'", "``'" -replace '"', '`"'
echo "body=$escapedChanges" >> $env:GITHUB_OUTPUT echo "body=$escapedChanges" >> $env:GITHUB_OUTPUT
shell: pwsh shell: pwsh