Skip to content

Commit ba7e40a

Browse files
authored
release-winget.yml: fix submission pwsh script (#747)
During a refactoring the `$manifestPath` variable assignment was accidentally omitted which is required to determine the `$manifestDirectory` for the submission command to WinGet. Since the `$manifestDirectory` is just a constant, let's update the submission command. Some things seem to have changed in `wingetcreate.exe` so that the directory structure is different, and the manifest location can no longer be specified as vaguely as before, therefore this all looks quite a bit more involved than simply specifying `./manifests` instead of `$manifestDirectory`.
2 parents 0a8cb87 + 0107738 commit ba7e40a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release-winget.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
6767
.\wingetcreate.exe update Microsoft.Git `
6868
-v $version `
69-
-o manifests `
69+
-o . `
7070
-u "$($asset_x64_url)|x64|machine" `
7171
"$($asset_x64_url)|x64|user" `
7272
"$($asset_arm64_url)|arm64|machine" `
@@ -77,6 +77,6 @@ jobs:
7777
Write-Host -NoNewLine "::add-mask::$(Get-Content token.txt)"
7878
7979
# Submit the manifest to the winget-pkgs repository
80-
$manifestDirectory = Split-Path "$manifestPath"
81-
.\wingetcreate.exe submit -t "$(Get-Content token.txt)" $manifestDirectory
80+
$manifestDirectory = "$PWD\manifests\m\Microsoft\Git\$version"
81+
.\wingetcreate.exe submit -t "$(Get-Content token.txt)" $manfiestDirectory
8282
shell: powershell

0 commit comments

Comments
 (0)