mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 01:46:46 +00:00
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:
parent
204b974cf4
commit
1e448f9a99
6 changed files with 70 additions and 31 deletions
|
@ -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')}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue