mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 22:44:20 +02:00
Use ImageOS for the cache key, so it also includes the OS version
This commit is contained in:
@@ -59,6 +59,14 @@ function findUbuntuVersion() {
|
||||
}
|
||||
}
|
||||
|
||||
export function getImageOS() {
|
||||
const imageOS = process.env['ImageOS']
|
||||
if (!imageOS) {
|
||||
throw new Error('The environment variable ImageOS must be set')
|
||||
}
|
||||
return imageOS
|
||||
}
|
||||
|
||||
export function shouldExtractInToolCache(engine, version) {
|
||||
return engine === 'ruby' && !isHeadVersion(version)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user