Add optional java-package parameter supporting jdk, jre, jdk+fx (#2)

* Add optional java-package parameter
This commit is contained in:
Gil Tene 2019-11-02 18:32:19 -07:00 committed by GitHub
parent f0fe308971
commit f5880a80aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 56 additions and 18 deletions

View file

@ -27,7 +27,8 @@ function run() {
}
const arch = core.getInput('architecture', { required: true });
const jdkFile = core.getInput('jdkFile', { required: false }) || '';
yield installer.getJava(version, arch, jdkFile);
const javaPackage = core.getInput('java-package', { required: false }) || 'jdk';
yield installer.getJava(version, arch, jdkFile, javaPackage);
const matchersPath = path.join(__dirname, '..', '.github');
console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
}