Add token in winget action

pull/583/merge
Pavel Djundik 6 months ago committed by GitHub
parent 401d086191
commit 4896ac0788
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -14,7 +14,11 @@ jobs:
run: |
$wingetPackage = "SteamRE.DepotDownloader"
$github = Invoke-RestMethod -uri "https://api.github.com/repos/SteamRE/DepotDownloader/releases"
$headers = @{
Authorization = "Bearer ${{ secrets.GITHUB_TOKEN }}"
}
$github = Invoke-RestMethod -uri "https://api.github.com/repos/SteamRE/DepotDownloader/releases" -Headers $headers
$targetRelease = $github | Where-Object -Property name -match '^DepotDownloader' | Select -First 1
$assets = $targetRelease | Select -ExpandProperty assets -First 1

Loading…
Cancel
Save