Changed a github api query to use credentials (quota problem)
This commit is contained in:
1 parent
8782ac649e
commit
5f2c341216
1 file changed
+5
-1
@@ -9,7 +9,11 @@ else{
|
||||
|
||||
$getRelaseInfoParams = @{
|
||||
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{
|
||||
$result = Invoke-RestMethod @getRelaseInfoParams
|
||||
|
||||
Reference in new issue
Block a user