Use java-version (#14)

This commit is contained in:
Danny McCormick 2019-08-13 16:24:39 -04:00 committed by GitHub
parent cbc5ae3642
commit 475978becf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 6 deletions

View file

@ -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}) || '';