From f85e59c20c558d6c2a26f32046a6ef181f3bebd1 Mon Sep 17 00:00:00 2001 From: Clint Rutkas Date: Mon, 2 May 2022 09:55:11 -0700 Subject: [PATCH] Update package-submissions.yml --- .github/workflows/package-submissions.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/package-submissions.yml b/.github/workflows/package-submissions.yml index 2304f4b668..847bf33917 100644 --- a/.github/workflows/package-submissions.yml +++ b/.github/workflows/package-submissions.yml @@ -16,7 +16,9 @@ jobs: run: | iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe $github = Get-Content '${{ github.event_path }}' | ConvertFrom-Json + 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 }} - .\wingetcreate.exe update $wingetPackage -s -v $github.release.tag_name.Trim("v") -u $installerUrl -t $gitToken + $ver = $github.release.tag_name.Trim("v") + .\wingetcreate.exe update $wingetPackage -s -v $ver -u $installerUrl -t $gitToken