mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-02-04 05:31:18 +01:00
Add token in winget action
This commit is contained in:
6
.github/workflows/winget.yml
vendored
6
.github/workflows/winget.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user