Use ruby-version (#10)
Some checks failed
Main workflow / Run (ubuntu-latest) (push) Has been cancelled
Main workflow / Run (windows-latest) (push) Has been cancelled

This commit is contained in:
Danny McCormick
2019-08-13 16:29:23 -04:00
committed by GitHub
parent 8dd8957526
commit c6c44b217a
4 changed files with 14 additions and 6 deletions

View File

@@ -3,7 +3,10 @@ import {findRubyVersion} from './installer';
async function run() {
try {
const version = core.getInput('version');
let version = core.getInput('version');
if (!version) {
version = core.getInput('ruby-version');
}
await findRubyVersion(version);
} catch (error) {
core.setFailed(error.message);