Skip to content

Commit

Permalink
Fix Another Syntax Error & Make the Release Workflow generate notes
Browse files Browse the repository at this point in the history
  • Loading branch information
og-mrk committed Jul 18, 2024
1 parent 88ec9eb commit 4583932
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
Get-Content ./winutil.ps1 -TotalCount 30 | ForEach-Object {
if ($_ -match 'Version\s*:\s*(\d{2}\.\d{2}\.\d{2})') {
$version = $matches[1]
echo "version=$version" >> $env:VERSION
echo "version=$version" >> $env:GITHUB_ENV
break
}
}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@ jobs:
id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env:VERSION }}
name: Release ${{ env:VERSION }}
body: "![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/winutil/${{ env:VERSION }}/winutil.ps1)"
tag_name: ${{ env.VERSION }}
name: Release ${{ env.VERSION }}
body: "![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/winutil/${{ env.VERSION }}/winutil.ps1)"
append_body: true
files: ./winutil.ps1
prerelease: false
generate_release_notes: true
make_latest: "true"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4583932

Please sign in to comment.