First attempt at find ruby action
This commit is contained in:
10
src/main.ts
10
src/main.ts
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user