Skip to content

Commit

Permalink
Merge pull request #13 from sirredbeard/winget-autoupdate
Browse files Browse the repository at this point in the history
Create winget.yml
  • Loading branch information
sirredbeard authored Jan 26, 2024
2 parents 87ee757 + 0f25dc3 commit 4871c18
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/winget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Update Winget Manifest

on:
release:
types: [published]

jobs:
update:
runs-on: windows-latest

steps:
- name: Install winget-create
run: |
Invoke-WebRequest -Uri 'https://aka.ms/wingetcreate/latest' -OutFile 'wingetcreate.exe'
- name: Update Winget Manifest
run: |
$assets = '${{ toJson(github.event.release.assets) }}' | ConvertFrom-Json
$url = ($assets | Where-Object { $_.name -eq "${{ github.event.release.tag_name }}.zip" }).browser_download_url
.\wingetcreate.exe update --submit "wslinternals" --token "${{ secrets.WINGET_TOKEN }}" -urls $url --version ${{ github.event.release.tag_name }} sirredbeard.wslinternals

0 comments on commit 4871c18

Please sign in to comment.