Add java-package parameter to action, support jre, jdk, and jdk+fx (#1)

* Match extension only at end of line

* Add optional java-package parameter (support jre, jdk, and jdk+fx)
This commit is contained in:
Gil Tene 2019-11-02 19:58:29 -07:00 committed by GitHub
parent 204b974cf4
commit 1e448f9a99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 70 additions and 31 deletions

View file

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