Skip to content

Commit 685cd0c

Browse files
committed
fixup! Adding winget workflows
Let's use the token also for the `wingetcreate.exe update` call. This commit is best viewed with `--color-moved`. Pointed-out-by: Matthew John Cheetham <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent b87d858 commit 685cd0c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release-winget.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ jobs:
6262
$env:TAG_NAME -match 'v(.*?)vfs\.(.*)'
6363
$version = $Matches[1] + $Matches[2]
6464
65+
# Download the token from Azure Key Vault and mask it in the logs
66+
$env:WINGET_CREATE_GITHUB_TOKEN = az keyvault secret show --name ${{ secrets.WINGET_TOKEN_SECRET_NAME }} --vault-name ${{ secrets.AZURE_VAULT }} --query "value" -o tsv
67+
Write-Host -NoNewLine "::add-mask::$env:WINGET_CREATE_GITHUB_TOKEN"
68+
6569
# Download wingetcreate and create manifests
6670
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
6771
.\wingetcreate.exe update Microsoft.Git `
@@ -72,10 +76,6 @@ jobs:
7276
"$($asset_arm64_url)|arm64|machine" `
7377
"$($asset_arm64_url)|arm64|user"
7478
75-
# Download the token from Azure Key Vault and mask it in the logs
76-
$env:WINGET_CREATE_GITHUB_TOKEN = az keyvault secret show --name ${{ secrets.WINGET_TOKEN_SECRET_NAME }} --vault-name ${{ secrets.AZURE_VAULT }} --query "value" -o tsv
77-
Write-Host -NoNewLine "::add-mask::$env:WINGET_CREATE_GITHUB_TOKEN"
78-
7979
# Submit the manifest to the winget-pkgs repository
8080
$manifestDirectory = "$PWD\manifests\m\Microsoft\Git\$version"
8181
$output = & .\wingetcreate.exe submit $manifestDirectory

0 commit comments

Comments
 (0)