mirror of
https://gitea.com/actions/setup-java.git
synced 2025-10-15 03:40:14 +08:00
Features/installer (#1)
* Initial attempt * Clean up * Extract right directory * Log whats happening * Read correct directory * Full path * Allow java to be found in cache * Add tests
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
import * as core from '@actions/core';
|
||||
import * as installer from './installer';
|
||||
|
||||
async function run() {
|
||||
const myInput = core.getInput('myInput');
|
||||
core.debug(`Hello ${myInput}`);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
run();
|
||||
|
Reference in New Issue
Block a user