Update action definition

This commit is contained in:
Gil Tene 2019-11-02 19:18:45 -07:00
parent fb7e2ed37c
commit fa409a5024
2 changed files with 2 additions and 2 deletions

View file

@ -26,8 +26,8 @@ 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 }) || '';
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')}`);

View file

@ -9,8 +9,8 @@ async 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}) || '';
const javaPackage = core.getInput('java-package', {required: false}) || 'jdk';
await installer.getJava(version, arch, jdkFile, javaPackage);