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
+306 -20
View File
File diff suppressed because it is too large Load Diff
+3 -231
View File
File diff suppressed because it is too large Load Diff
+1 -2
View File
@@ -35,10 +35,9 @@
"@types/node": "^12.0.4", "@types/node": "^12.0.4",
"@types/semver": "^6.0.0", "@types/semver": "^6.0.0",
"@zeit/ncc": "^0.20.5", "@zeit/ncc": "^0.20.5",
"husky": "^3.0.0",
"jest": "^24.8.0", "jest": "^24.8.0",
"jest-circus": "^24.7.1", "jest-circus": "^24.7.1",
"prettier": "^1.17.1", "prettier": "^1.19.1",
"ts-jest": "^24.0.2", "ts-jest": "^24.0.2",
"typescript": "^3.5.1" "typescript": "^3.5.1"
}, },
+3 -3
View File
@@ -41,9 +41,9 @@ export async function getJava(
if (!jdkFile) { if (!jdkFile) {
core.debug('Downloading Jdk from Azul'); core.debug('Downloading Jdk from Azul');
let http: httpm.HttpClient = new httpm.HttpClient('setup-java'); let http: httpm.HttpClient = new httpm.HttpClient('setup-java');
let contents = await (await http.get( let contents = await (
'https://static.azul.com/zulu/bin/' await http.get('https://static.azul.com/zulu/bin/')
)).readBody(); ).readBody();
let refs = contents.match(/<a href.*\">/gi) || []; let refs = contents.match(/<a href.*\">/gi) || [];
const downloadInfo = getDownloadInfo(refs, version, javaPackage); const downloadInfo = getDownloadInfo(refs, version, javaPackage);