Update pre-release.yaml

This commit is contained in:
Chris Titus 2024-08-29 21:59:12 -05:00
parent 01515db90f
commit aad0356c28

View File

@ -101,9 +101,8 @@ jobs:
id: prepare_body id: prepare_body
run: | run: |
$newChanges = '${{ steps.generate_notes.outputs.body }}' $newChanges = '${{ steps.generate_notes.outputs.body }}'
$formattedChanges = "Changes since ${{ env.LATEST_TAG }}:`n`n$newChanges" $escapedChanges = $newChanges -replace '(?m)^\s*(.+)\s*$', '$1' -replace "'", "''" -replace '"', '\"' -replace "`n", "\n" -replace "`r", ""
$escapedChanges = $formattedChanges -replace "`n", "%0A" -replace "'", "``'" -replace '"', '`"' echo "body=$escapedChanges" | Out-File -Append -Encoding utf8 $env:GITHUB_OUTPUT
echo "body=$escapedChanges" >> $env:GITHUB_OUTPUT
shell: pwsh shell: pwsh
- name: Create and Upload Release - name: Create and Upload Release