mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 17:36:45 +00:00
Cleanup
This commit is contained in:
parent
66e61f647e
commit
980efe83e2
4 changed files with 313 additions and 256 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue