This commit is contained in:
Danny McCormick 2019-07-18 15:52:10 -04:00
parent 1b833f3f3a
commit dfc3d5fd77
2 changed files with 2 additions and 11 deletions

View File

@ -55,12 +55,7 @@ function getJava(version, arch, jdkFile) {
let contents = yield (yield http.get('https://static.azul.com/zulu/bin/')).readBody();
let refs = contents.match(/<a href.*\">/gi) || [];
const downloadInfo = getDownloadInfo(refs, version);
try {
jdkFile = yield tc.downloadTool(downloadInfo.url);
}
catch (_a) {
throw Error(downloadInfo.url);
}
jdkFile = yield tc.downloadTool(downloadInfo.url);
version = downloadInfo.version;
compressedFileExtension = IS_WINDOWS ? '.zip' : '.tar.gz';
}

View File

@ -47,11 +47,7 @@ export async function getJava(
const downloadInfo = getDownloadInfo(refs, version);
try {
jdkFile = await tc.downloadTool(downloadInfo.url);
} catch {
throw Error(downloadInfo.url);
}
jdkFile = await tc.downloadTool(downloadInfo.url);
version = downloadInfo.version;
compressedFileExtension = IS_WINDOWS ? '.zip' : '.tar.gz';
} else {