1
0
Fork 0
mirror of https://github.com/actions/setup-java synced 2024-11-13 00:52:39 +00:00
setup-java/src/setup-java.ts

17 lines
430 B
TypeScript
Raw Normal View History

2019-07-10 14:54:25 +00:00
import * as core from '@actions/core';
import * as installer from './installer';
2019-07-10 14:54:25 +00:00
async function run() {
try {
const version = core.getInput('version', {required: true});
const arch = core.getInput('architecture', {required: true});
const jdkFile = core.getInput('jdkFile', {required: true});
await installer.getJava(version, arch, jdkFile);
} catch (error) {
core.setFailed(error.message);
}
2019-07-10 14:54:25 +00:00
}
run();