From 5f2c34121625e0a69533dc8c5c8ea4661ff3602c Mon Sep 17 00:00:00 2001 From: lukeIam <2lukeiam@gmail.com> Date: Sun, 6 Dec 2015 21:23:11 +0100 Subject: [PATCH] Changed a github api query to use credentials (quota problem) --- .appveyor/prepareDeploy.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.appveyor/prepareDeploy.ps1 b/.appveyor/prepareDeploy.ps1 index 099102a8..922a6550 100644 --- a/.appveyor/prepareDeploy.ps1 +++ b/.appveyor/prepareDeploy.ps1 @@ -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