mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 14:45:52 -06:00
fix pre-release
This commit is contained in:
parent
d315963693
commit
2d3dbe4f6a
5
.github/release-drafter.yml
vendored
5
.github/release-drafter.yml
vendored
@ -1,5 +1,6 @@
|
|||||||
name-template: 'v$RESOLVED_VERSION'
|
name-template: '$RESOLVED_VERSION'
|
||||||
tag-template: 'v$RESOLVED_VERSION'
|
tag-template: '$RESOLVED_VERSION'
|
||||||
|
tag-prefix: ""
|
||||||
categories:
|
categories:
|
||||||
- title: '🚀 Features'
|
- title: '🚀 Features'
|
||||||
labels:
|
labels:
|
||||||
|
18
.github/workflows/pre-release.yaml
vendored
18
.github/workflows/pre-release.yaml
vendored
@ -74,6 +74,13 @@ jobs:
|
|||||||
name: winutil
|
name: winutil
|
||||||
path: ./winutil.ps1
|
path: ./winutil.ps1
|
||||||
|
|
||||||
|
- name: Get latest release tag
|
||||||
|
id: get_latest_release
|
||||||
|
run: |
|
||||||
|
$latestTag = git describe --tags --abbrev=0
|
||||||
|
echo "LATEST_TAG=$latestTag" >> $env:GITHUB_ENV
|
||||||
|
shell: pwsh
|
||||||
|
|
||||||
- name: Generate Release Notes
|
- name: Generate Release Notes
|
||||||
id: generate_notes
|
id: generate_notes
|
||||||
uses: release-drafter/release-drafter@v5
|
uses: release-drafter/release-drafter@v5
|
||||||
@ -82,14 +89,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
config-name: release-drafter.yml
|
config-name: release-drafter.yml
|
||||||
version: ${{ env.version }}
|
version: ${{ env.version }}
|
||||||
|
tag: ${{ env.LATEST_TAG }}
|
||||||
|
|
||||||
- name: Prepare Release Body
|
- name: Prepare Release Body
|
||||||
id: prepare_body
|
id: prepare_body
|
||||||
run: |
|
run: |
|
||||||
new_changes="${{ steps.generate_notes.outputs.body }}"
|
$newChanges = "${{ steps.generate_notes.outputs.body }}"
|
||||||
echo "body<<EOF" >> $GITHUB_OUTPUT
|
$formattedChanges = "Changes since ${{ env.LATEST_TAG }}:`n`n$newChanges"
|
||||||
echo "$new_changes" >> $GITHUB_OUTPUT
|
echo "body<<EOF" >> $env:GITHUB_OUTPUT
|
||||||
echo "EOF" >> $GITHUB_OUTPUT
|
echo "$formattedChanges" >> $env:GITHUB_OUTPUT
|
||||||
|
echo "EOF" >> $env:GITHUB_OUTPUT
|
||||||
|
shell: pwsh
|
||||||
|
|
||||||
- name: Create and Upload Release
|
- name: Create and Upload Release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
Loading…
Reference in New Issue
Block a user