Read from .ruby-version if version is unset or set to '.ruby-version'

* Fixes https://github.com/eregon/use-ruby-action/issues/4
This commit is contained in:
Benoit Daloze
2020-01-06 22:00:45 +01:00
parent b339f321d1
commit a61be15bff
6 changed files with 17 additions and 3 deletions
+3
View File
@@ -53,6 +53,8 @@ jobs:
- run: ruby -v
```
You can leave `ruby-version` unset to use the project's `.ruby-version` file.
### Matrix
This matrix tests all stable releases of MRI, JRuby and TruffleRuby on Ubuntu and macOS.
@@ -82,6 +84,7 @@ jobs:
* short version like `2.6`, automatically using the latest release matching that version (`2.6.5`)
* version only like `2.6.5`, assumes MRI for the engine
* engine only like `truffleruby`, uses the latest stable release of that implementation
* `.ruby-version` reads from the project's `.ruby-version` file
### Bundler