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

@@ -1,8 +1,14 @@
import * as core from '@actions/core';
import findRubyVersion, {getPlatform} from './find-ruby';
async function run() {
const myInput = core.getInput('myInput');
core.debug(`Hello ${myInput}`);
try {
const version = core.getInput('version');
const addToPath = core.getInput('add-to-path');
await findRubyVersion({version, addToPath}, getPlatform());
} catch (error) {
core.setFailed(error.message);
}
}
run();