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 420ff09 commit f90ec44
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 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 @@ -24,7 +24,6 @@ jobs:
if ($_ -match 'Version\s*:\s*(\d{2}\.\d{2}\.\d{2})') {
$version = $matches[1]
echo "version=$version" >> $GITHUB_ENV
echo "::set-output name=version::$version"
break
}
}
Expand All @@ -36,9 +35,7 @@ jobs:

- name: Draft Release Changelog
id: draft_release
uses: release-drafter/release-drafter@v5
with:
version: ${{ steps.extract_version.outputs.version }}
uses: release-drafter/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -54,7 +51,3 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f90ec44

Please sign in to comment.