PR Feedback - simplifying action

This commit is contained in:
Derrick Marcey
2019-06-27 13:53:08 -04:00
parent 762d5da203
commit 4fdd5911a6
5 changed files with 17 additions and 70 deletions

View File

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