mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 01:46:46 +00:00
Use java-version (#14)
This commit is contained in:
parent
cbc5ae3642
commit
475978becf
4 changed files with 15 additions and 6 deletions
|
@ -4,7 +4,10 @@ import * as path from 'path';
|
|||
|
||||
async function run() {
|
||||
try {
|
||||
const version = core.getInput('version', {required: true});
|
||||
let version = core.getInput('version');
|
||||
if (!version) {
|
||||
version = core.getInput('java-version', {required: true});
|
||||
}
|
||||
const arch = core.getInput('architecture', {required: true});
|
||||
const jdkFile = core.getInput('jdkFile', {required: false}) || '';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue