This commit is contained in:
Konrad Pabjan 2019-11-25 10:12:17 -05:00
parent 66e61f647e
commit 980efe83e2
4 changed files with 313 additions and 256 deletions

View file

@ -41,9 +41,9 @@ export async function getJava(
if (!jdkFile) {
core.debug('Downloading Jdk from Azul');
let http: httpm.HttpClient = new httpm.HttpClient('setup-java');
let contents = await (await http.get(
'https://static.azul.com/zulu/bin/'
)).readBody();
let contents = await (
await http.get('https://static.azul.com/zulu/bin/')
).readBody();
let refs = contents.match(/<a href.*\">/gi) || [];
const downloadInfo = getDownloadInfo(refs, version, javaPackage);