mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 02:16:45 +00:00
Add optional java-package parameter supporting jdk, jre, jdk+fx (#2)
* Add optional java-package parameter
This commit is contained in:
parent
f0fe308971
commit
f5880a80aa
4 changed files with 56 additions and 18 deletions
|
@ -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')}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue