Changed a github api query to use credentials (quota problem)
This commit is contained in:
1 parent
8782ac649e
commit
5f2c341216
1 file changed
+4
@@ -10,6 +10,10 @@ else{
|
|||||||
$getRelaseInfoParams = @{
|
$getRelaseInfoParams = @{
|
||||||
Uri = "https://api.github.com/repos/Vocaluxe/Vocaluxe/releases/tags/$targetTag";
|
Uri = "https://api.github.com/repos/Vocaluxe/Vocaluxe/releases/tags/$targetTag";
|
||||||
Method = 'GET';
|
Method = 'GET';
|
||||||
|
Headers = @{
|
||||||
|
Authorization = 'Basic ' + [Convert]::ToBase64String(
|
||||||
|
[Text.Encoding]::ASCII.GetBytes($Env:GitHubKey + ":x-oauth-basic"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
try{
|
try{
|
||||||
$result = Invoke-RestMethod @getRelaseInfoParams
|
$result = Invoke-RestMethod @getRelaseInfoParams
|
||||||
|
|||||||
Reference in new issue
Block a user