From 56be4dca4f71a21ead8dc50a97e0036ab3ce7b0b Mon Sep 17 00:00:00 2001 From: Alexandre Pasmantier Date: Fri, 7 Feb 2025 20:40:00 +0100 Subject: [PATCH] ci(winget): update winget release configuration --- .github/workflows/winget.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml index 04e544c..b27db21 100644 --- a/.github/workflows/winget.yml +++ b/.github/workflows/winget.yml @@ -12,9 +12,17 @@ jobs: publish: runs-on: windows-latest steps: - - uses: vedantmgoyal9/winget-releaser@4ffc7888bffd451b357355dc214d43bb9f23917e # v2 + - name: Get version + id: get-version + run: | + # Finding the version from release name + $VERSION="${{ github.event.release.name }}" -replace '^.*/ ' + "version=$VERSION" >> $env:GITHUB_OUTPUT + shell: pwsh + - uses: vedantmgoyal9/winget-releaser@main with: identifier: 'alexpasmantier.television' installers-regex: '-windows-x86_64\.zip$' max-versions-to-keep: 5 token: ${{ secrets.PAT_FOR_WINGET_RELEASER }} + version: ${{ steps.get-version.outputs.version }}