mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-24 04:12:32 +08:00
Update package-submissions.yml
This commit is contained in:
parent
7cbdfa7bf1
commit
06840f466b
5
.github/workflows/package-submissions.yml
vendored
5
.github/workflows/package-submissions.yml
vendored
@ -19,9 +19,10 @@ jobs:
|
||||
$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")
|
||||
$targetRelease = $github | Where-Object -Property name -match 'Release'| Select -First 1
|
||||
$installerUrl = $targetRelease | Select -ExpandProperty assets -First 1 | Where-Object -Property name -match 'PowerToysSetup' | Select browser_download_url
|
||||
$ver = $targetRelease.tag_name.Trim("v")
|
||||
|
||||
# getting latest wingetcreate file
|
||||
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
|
||||
|
Loading…
Reference in New Issue
Block a user