Skip to content

Commit

Permalink
fixed build by making authenticated github call when retrieving lates…
Browse files Browse the repository at this point in the history
…t release
  • Loading branch information
pbakaus committed Nov 6, 2018
1 parent 6ab6b70 commit 46cb4eb
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions scripts/import_docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,16 +259,7 @@ async function downloadExtensions() {

// before we download content, we first have to figure out the latest release tag,
// to make sure our docs always match the latest released AMP version.
request({
url: 'https://api.github.com/repos/ampproject/amphtml/releases/latest',
headers: {
'User-Agent': 'request'
},
qs: {
'access_token': clientToken
},
json: true
}, function (error, response, body) {
client.get('/repos/ampproject/amphtml/releases/latest', {}, function (err, status, body) {

latestReleaseTag = body.tag_name; // updates global var, used in the other functions
if (!latestReleaseTag) {
Expand Down

0 comments on commit 46cb4eb

Please sign in to comment.