Skip to content

Commit

Permalink
Update pre-release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTitusTech committed Aug 30, 2024
1 parent b614180 commit 7e1c593
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ jobs:
- name: Prepare Release Body
id: prepare_body
run: |
$newChanges = '${{ steps.generate_notes.outputs.body }}'
$newChanges = @'
${{ steps.generate_notes.outputs.body }}
'@
$formattedChanges = "Changes since ${{ env.LATEST_TAG }}:`n`n$newChanges"
$escapedChanges = $formattedChanges -replace '"', '\"'
echo "body<<EOF" >> $env:GITHUB_OUTPUT
echo "$escapedChanges" >> $env:GITHUB_OUTPUT
echo "EOF" >> $env:GITHUB_OUTPUT
$encodedChanges = [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($formattedChanges))
echo "body=$encodedChanges" >> $env:GITHUB_OUTPUT
shell: pwsh

- name: Create and Upload Release
Expand All @@ -115,7 +115,7 @@ jobs:
tag_name: ${{ env.version }}
name: Pre-Release ${{ env.version }}
body: |
${{ steps.prepare_body.outputs.body }}
${{ '{{' }} fromJson(format('"{0}"', steps.prepare_body.outputs.body)) | base64decode {{ '}}' }}
![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/winutil/${{ env.VERSION }}/winutil.ps1)
append_body: false
Expand Down

0 comments on commit 7e1c593

Please sign in to comment.