Skip to content

Commit

Permalink
Update pre-release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
MyDrift-user authored Jun 25, 2024
1 parent 5529a7b commit 9841e0c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Pre-Release WinUtil

on:
workflow_run:
workflows: ["Compile"] # Ensure Compile winget.ps1 is done
workflows: ["Compile"] #Ensure Compile winget.ps1 is done
types:
- completed
workflow_dispatch: # Manual trigger added
Expand All @@ -15,7 +15,7 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Extract Version from winutil.ps1
id: extract_version
run: |
Expand All @@ -34,10 +34,11 @@ jobs:
}
shell: pwsh

- name: Create Release Notes Draft
- name: Draft Release Changelog
id: draft_release
uses: release-drafter/release-drafter@v5
with:
config-name: .github/release-drafter.yml
version: ${{ steps.extract_version.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -47,6 +48,7 @@ jobs:
with:
tag_name: ${{ steps.extract_version.outputs.version }}
name: Pre-Release ${{ steps.extract_version.outputs.version }}
body: ${{ steps.draft_release.outputs.draft_body }}
files: ./winutil.ps1
prerelease: true
env:
Expand Down

0 comments on commit 9841e0c

Please sign in to comment.