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
+1 -1
View File
@@ -7,7 +7,7 @@ jobs:
matrix:
os: [ ubuntu-16.04, ubuntu-18.04, macos-latest, windows-latest ]
# Use various version syntaxes here for testing
ruby: [ 2.3, ruby-2.4, 2.5, ruby-2.6.5, 2.7.0, jruby, truffleruby ]
ruby: [ .ruby-version, 2.3, ruby-2.4, 2.5, ruby-2.6.5, 2.7.0, jruby, truffleruby ]
exclude:
- os: windows-latest
ruby: 2.3