Skip to content

Commit

Permalink
refactor: remove modified WinGet workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
niStee committed Nov 2, 2024
1 parent 5ac1a2d commit 0acbf0a
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/release_to_winget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,4 @@ jobs:
with:
identifier: topgrade-rs.topgrade
max-versions-to-keep: 5 # keep only latest 5 versions
token: ${{ secrets.WINGET_TOKEN }}
- name: Get latest release information
id: get_release_info
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
$ReleaseInfo = Invoke-RestMethod `
-Uri 'https://api.github.com/repos/topgrade-rs/topgrade/releases/latest' `
-Headers @{ Authorization = "token $env:GITHUB_TOKEN" }
Write-Output "Release Info: $ReleaseInfo"
echo "::set-output name=version::$(echo $ReleaseInfo.tag_name -replace '^v')"
echo "::set-output name=urls::$(echo $ReleaseInfo.assets.Where({ $_.name -match '.(exe|msi|msix|appx)(bundle){0,1}$' }).browser_download_url -join ' ')"
- name: Update WinGet package
env:
KOMAC_FORK_OWNER: topgrade-rs
KOMAC_CREATED_WITH: WinGet Releaser
KOMAC_CREATED_WITH_URL: https://github.com/vedantmgoyal2009/winget-releaser
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
komac update 'topgrade-rs.topgrade' --version '${{ steps.get_release_info.outputs.version }}' --submit --urls '${{ steps.get_release_info.outputs.urls }}'
token: ${{ secrets.WINGET_TOKEN }}

0 comments on commit 0acbf0a

Please sign in to comment.