From 98cfeb07767085c1fa037cb2de46004f7220b6df Mon Sep 17 00:00:00 2001 From: Muhammad Danish Date: Thu, 18 Jul 2024 15:39:51 +0500 Subject: [PATCH] [ci]Case insensitively replace version prefix for winget's PackageVersion (#33810) --- .github/workflows/package-submissions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/package-submissions.yml b/.github/workflows/package-submissions.yml index 204d9c8d3b..b03c18b78b 100644 --- a/.github/workflows/package-submissions.yml +++ b/.github/workflows/package-submissions.yml @@ -24,7 +24,7 @@ jobs: $installerMachineX64Url = $targetRelease | Select -ExpandProperty assets -First 1 | Where-Object -Property name -match 'PowerToysSetup.*x64' | Select -ExpandProperty browser_download_url $installerUserArmUrl = $targetRelease | Select -ExpandProperty assets -First 1 | Where-Object -Property name -match 'PowerToysUserSetup.*arm64' | Select -ExpandProperty browser_download_url $installerMachineArmUrl = $targetRelease | Select -ExpandProperty assets -First 1 | Where-Object -Property name -match 'PowerToysSetup.*arm64' | Select -ExpandProperty browser_download_url - $ver = $targetRelease.tag_name.Trim("v") + $ver = $targetRelease.tag_name -ireplace '^v' # getting latest wingetcreate file iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe