Initial attempt

This commit is contained in:
Danny McCormick 2019-07-10 11:55:10 -04:00
parent 06d666cd11
commit 8ec3a6392c
5 changed files with 445 additions and 5 deletions

View file

@ -16,10 +16,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(require("@actions/core"));
const installer = __importStar(require("./installer"));
function run() {
return __awaiter(this, void 0, void 0, function* () {
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 });
yield installer.getJava(version, arch, jdkFile);
}
catch (error) {
core.setFailed(error.message);
}
});
}
run();