mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 22:44:20 +02:00
Also include the commit in the cache key for truffleruby-head
* That way new caches can be created if the previous cache is for a different commit.
This commit is contained in:
+1
-1
@@ -2469,7 +2469,7 @@ async function bundleInstall(platform, engine, version) {
|
||||
|
||||
async function computeBaseKey(platform, engine, version) {
|
||||
let baseKey = `setup-ruby-bundle-install-${platform}-${engine}-${version}`
|
||||
if (engine === 'ruby' && common.isHeadVersion(version)) {
|
||||
if (engine !== 'jruby' && common.isHeadVersion(version)) {
|
||||
let revision = '';
|
||||
await exec.exec('ruby', ['-e', 'print RUBY_REVISION'], {
|
||||
silent: true,
|
||||
|
||||
@@ -283,7 +283,7 @@ async function bundleInstall(platform, engine, version) {
|
||||
|
||||
async function computeBaseKey(platform, engine, version) {
|
||||
let baseKey = `setup-ruby-bundle-install-${platform}-${engine}-${version}`
|
||||
if (engine === 'ruby' && common.isHeadVersion(version)) {
|
||||
if (engine !== 'jruby' && common.isHeadVersion(version)) {
|
||||
let revision = '';
|
||||
await exec.exec('ruby', ['-e', 'print RUBY_REVISION'], {
|
||||
silent: true,
|
||||
|
||||
Reference in New Issue
Block a user