Files
setup-ruby/src/main.ts

15 lines
360 B
TypeScript
Raw Normal View History

2019-06-26 14:22:50 -04:00
import * as core from '@actions/core';
2019-06-27 11:50:36 -04:00
import findRubyVersion, {getPlatform} from './find-ruby';
2019-06-26 14:22:50 -04:00
async function run() {
2019-06-27 11:50:36 -04:00
try {
const version = core.getInput('version');
const addToPath = core.getInput('add-to-path');
await findRubyVersion({version, addToPath}, getPlatform());
} catch (error) {
core.setFailed(error.message);
}
2019-06-26 14:22:50 -04:00
}
2019-06-26 14:35:18 -04:00
run();