mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 22:44:20 +02:00
cache-version input allowing a forced change of the cache key
This commit is contained in:
committed by
Benoit Daloze
parent
2eb6adbfb1
commit
fa2182b2a4
@@ -12,6 +12,7 @@ const inputDefaults = {
|
||||
'bundler': 'default',
|
||||
'bundler-cache': 'true',
|
||||
'working-directory': '.',
|
||||
'cache-version': bundler.DEFAULT_CACHE_VERSION,
|
||||
}
|
||||
|
||||
// entry point when this action is run on its own
|
||||
@@ -67,7 +68,7 @@ export async function setupRuby(options = {}) {
|
||||
|
||||
if (inputs['bundler-cache'] === 'true') {
|
||||
await common.measure('bundle install', async () =>
|
||||
bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion))
|
||||
bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion, inputs['cache-version']))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user