mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 22:44:20 +02:00
Add support for ruby-head
This commit is contained in:
@@ -51,7 +51,7 @@ function validateRubyEngineAndVersion(platform, engineVersions, engine, version)
|
||||
|
||||
if (!engineVersions.includes(version)) {
|
||||
const latestToFirstVersion = engineVersions.slice().reverse()
|
||||
const found = latestToFirstVersion.find(v => v.startsWith(version))
|
||||
const found = latestToFirstVersion.find(v => v !== 'head' && v.startsWith(version))
|
||||
if (found) {
|
||||
version = found
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user