mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-14 17:25:03 +03:00
Update winget-publish.yml
Update winget-publish.yml
This commit is contained in:
@@ -19,7 +19,9 @@ jobs:
|
||||
$wingetPackage = "2dust.v2rayN"
|
||||
$gitToken = "${{ secrets.PT_WINGET }}"
|
||||
|
||||
$github = Invoke-RestMethod -uri "https://api.github.com/repos/2dust/v2rayN/releases"
|
||||
$headers = @{ Authorization = "Bearer $gitToken"; Accept = "application/vnd.github+json" }
|
||||
|
||||
$github = Invoke-RestMethod -Uri "https://api.github.com/repos/2dust/v2rayN/releases" -Headers $headers
|
||||
|
||||
$targetRelease = $github | Where-Object -Property prerelease -match 'False' | Select -First 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user