First attempt at find ruby action

This commit is contained in:
Derrick Marcey
2019-06-27 11:50:36 -04:00
parent d2fa3b8435
commit c39a9768cf
7 changed files with 148 additions and 6 deletions

View File

@@ -16,10 +16,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(require("@actions/core"));
const find_ruby_1 = __importStar(require("./find-ruby"));
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');
const addToPath = core.getInput('add-to-path');
yield find_ruby_1.default({ version, addToPath }, find_ruby_1.getPlatform());
}
catch (error) {
core.setFailed(error.message);
}
});
}
run();