Compare commits

..

1 Commits

Author SHA1 Message Date
e73ffbcdec support ghes (#157) 2020-05-18 12:29:21 -04:00

3
dist/index.js vendored
View File

@ -10943,7 +10943,7 @@ function downloadTool(url, dest, auth) {
} }
} }
// Otherwise retry // Otherwise retry
return false; return true;
}); });
}); });
} }
@ -10965,7 +10965,6 @@ function downloadToolAttempt(url, dest, auth) {
}; };
} }
const response = yield http.get(url, headers); const response = yield http.get(url, headers);
throw new HTTPError(500);
if (response.message.statusCode !== 200) { if (response.message.statusCode !== 200) {
const err = new HTTPError(response.message.statusCode); const err = new HTTPError(response.message.statusCode);
core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`); core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);