Add optional java-package parameter

This commit is contained in:
Gil Tene 2019-11-02 17:47:44 -07:00
commit e7c72b564b
4 changed files with 42 additions and 14 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')}`);
}