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:
Danny McCormick 2019-07-10 23:11:48 -04:00 committed by GitHub
parent 62b9fcdfde
commit 46ca045b4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 407 additions and 7 deletions

View file

@ -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();