mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 22:43:31 +08:00
Update package-submissions.yml
This commit is contained in:
parent
73b09ffd9f
commit
7cbdfa7bf1
12
.github/workflows/package-submissions.yml
vendored
12
.github/workflows/package-submissions.yml
vendored
@ -14,11 +14,15 @@ jobs:
|
||||
steps:
|
||||
- name: Submit package to Windows Package Manager Community Repository
|
||||
run: |
|
||||
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
|
||||
$github = Invoke-RestMethod -uri "https://api.github.com/repos/Microsoft/PowerToys/releases"
|
||||
Write-Output $github.release.assets
|
||||
$installerUrl = $github.release.assets | Where-Object -Property name -match 'PowerToysSetup' | Select -ExpandProperty browser_download_url -First 1
|
||||
|
||||
$wingetPackage = "Microsoft.PowerToys"
|
||||
$gitToken = {{ secrets.pt_WinGet }}
|
||||
|
||||
$github = Invoke-RestMethod -uri "https://api.github.com/repos/Microsoft/PowerToys/releases"
|
||||
$installerUrl = $github | Where-Object -Property name -match 'Release' | Select -ExpandProperty assets -First 1 | Where-Object -Property name -match 'PowerToysSetup' | Select browser_download_url
|
||||
|
||||
$ver = $github.release.tag_name.Trim("v")
|
||||
|
||||
# getting latest wingetcreate file
|
||||
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
|
||||
.\wingetcreate.exe update $wingetPackage -s -v $ver -u $installerUrl -t $gitToken
|
||||
|
Loading…
Reference in New Issue
Block a user