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:
Benoit Daloze
2020-07-11 16:08:35 +02:00
parent 1bb7de255b
commit 40bbc5ec66
2 changed files with 2 additions and 2 deletions
Generated Vendored
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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,