Skip to content

Commit

Permalink
chore: fix versioning in winget publish workflow (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrzlgnm authored Dec 18, 2024
1 parent db9c4ad commit ad73950
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/winget-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,20 @@ jobs:
include:
- id: "hrzlgnm.mdns-browser"
repo: "hrzlgnm/mdns-browser"
url: https://github.com/hrzlgnm/mdns-browser/releases/download/mdns-browser-v{VERSION}/mdns-browser_${VERSION}_x64-setup.exe

steps:
- name: Extract short version
id: extract_version
run: echo "SHORT_VERSION=${{ $VERSION#*-v}}" >> $GITHUB_ENV

- name: Update Packages
uses: michidk/winget-updater@latest
with:
komac-version: "2.6.0"
komac-token: ${{ secrets.WINGET_TOKEN }}
identifier: ${{ matrix.id }}
repo: ${{ matrix.repo }}
url: ${{ matrix.url }}
url: https://github.com/${{ matrix.repo }}/releases/download/{VERSION}/mdns-browser_${{ env.SHORT_VERSION }}_x64-setup.exe

cleanup:
name: Cleanup branches
Expand Down

0 comments on commit ad73950

Please sign in to comment.