Skip to content

Commit

Permalink
Fix winget releaser workflow (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
sitiom authored Sep 2, 2024
1 parent efc28f2 commit 8fb10eb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/winget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ on:
types: [released]
jobs:
publish:
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- name: Get version
id: get-version
run: |
# Finding the version from release name
$VERSION = '${{ github.event.release.tag_name }}'.Replace('v', $Null) + '.0.0'
echo "::set-output name=version::$VERSION"
shell: pwsh
- uses: vedantmgoyal2009/winget-releaser@v2
# Find the version from tag name and pad to 4 components
version=$(echo "${{ github.event.release.tag_name }}" | awk -F. '{printf "%d.%d.%d.%d\n", substr($1, 2), $2, $3, $4}')
echo "version=$VERSION" >> $GITHUB_OUTPUT
- uses: vedantmgoyal9/winget-releaser@main
with:
identifier: Klocman.BulkCrapUninstaller
version: ${{ steps.get-version.outputs.version }}
Expand Down

0 comments on commit 8fb10eb

Please sign in to comment.