Configure Ruby version syntax
masterThe ruby-version input supports several formats to specify which Ruby implementation and version to use:
- Engine-version: e.g.,
ruby-2.6.5ortruffleruby-19.3.0. - Short version: e.g.,
'2.6', which automatically uses the latest release matching that version (e.g.,2.6.10). - Version only: e.g.,
'2.6.5', which assumes the MRI implementation. - Engine only: e.g.,
rubyortruffleruby, which uses the latest stable release of that implementation. - Automatic detection: If
ruby-versionis not provided, the action searches for.ruby-version,.tool-versions, ormise.tomlfiles in the repository.
# Examples of different syntax styles
ruby-version: 'ruby-2.6.5'
ruby-version: '2.6'
ruby-version: '2.6.5'
ruby-version: 'ruby'