mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 22:55:52 -06:00
Update pre-release.yaml
This commit is contained in:
parent
b6141808af
commit
7e1c593510
12
.github/workflows/pre-release.yaml
vendored
12
.github/workflows/pre-release.yaml
vendored
@ -100,12 +100,12 @@ jobs:
|
|||||||
- name: Prepare Release Body
|
- name: Prepare Release Body
|
||||||
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"
|
$formattedChanges = "Changes since ${{ env.LATEST_TAG }}:`n`n$newChanges"
|
||||||
$escapedChanges = $formattedChanges -replace '"', '\"'
|
$encodedChanges = [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($formattedChanges))
|
||||||
echo "body<<EOF" >> $env:GITHUB_OUTPUT
|
echo "body=$encodedChanges" >> $env:GITHUB_OUTPUT
|
||||||
echo "$escapedChanges" >> $env:GITHUB_OUTPUT
|
|
||||||
echo "EOF" >> $env:GITHUB_OUTPUT
|
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Create and Upload Release
|
- name: Create and Upload Release
|
||||||
@ -115,7 +115,7 @@ jobs:
|
|||||||
tag_name: ${{ env.version }}
|
tag_name: ${{ env.version }}
|
||||||
name: Pre-Release ${{ env.version }}
|
name: Pre-Release ${{ env.version }}
|
||||||
body: |
|
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)
|
![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/winutil/${{ env.VERSION }}/winutil.ps1)
|
||||||
append_body: false
|
append_body: false
|
||||||
|
Loading…
Reference in New Issue
Block a user