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

@@ -20,7 +20,10 @@ const installer_1 = require("./installer");
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
const version = core.getInput('version');
let version = core.getInput('version');
if (!version) {
version = core.getInput('ruby-version');
}
yield installer_1.findRubyVersion(version);
}
catch (error) {