diff --git a/bundler.js b/bundler.js index e9c3b11c1..8e30223ae 100644 --- a/bundler.js +++ b/bundler.js @@ -165,6 +165,9 @@ export async function bundleInstall(gemfile, lockFile, platform, engine, rubyVer await exec.exec('bundle', ['lock'], envOptions) } + await core.group(`Print lockfile`, async () => + await exec.exec('cat', [lockFile])) + // cache key const paths = [cachePath] const baseKey = await computeBaseKey(engine, rubyVersion, lockFile, cacheVersion) diff --git a/dist/index.js b/dist/index.js index f88f53b87..426894ffb 100644 --- a/dist/index.js +++ b/dist/index.js @@ -179,6 +179,9 @@ async function bundleInstall(gemfile, lockFile, platform, engine, rubyVersion, b await exec.exec('bundle', ['lock'], envOptions) } + await core.group(`Print lockfile`, async () => + await exec.exec('cat', [lockFile])) + // cache key const paths = [cachePath] const baseKey = await computeBaseKey(engine, rubyVersion, lockFile, cacheVersion) @@ -85343,11 +85346,6 @@ async function setupRuby(options = {}) { if (inputs['bundler-cache'] === 'true') { await common.time('bundle install', async () => bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion, inputs['cache-version'])) - - if (lockFile !== null && fs.existsSync(lockFile)) { - await core.group(`Print lockfile`, async () => - await exec.exec('cat', [lockFile])) - } } core.setOutput('ruby-prefix', rubyPrefix) diff --git a/index.js b/index.js index 2d29628d7..62e46feb9 100644 --- a/index.js +++ b/index.js @@ -99,11 +99,6 @@ export async function setupRuby(options = {}) { if (inputs['bundler-cache'] === 'true') { await common.time('bundle install', async () => bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion, inputs['cache-version'])) - - if (lockFile !== null && fs.existsSync(lockFile)) { - await core.group(`Print lockfile`, async () => - await exec.exec('cat', [lockFile])) - } } core.setOutput('ruby-prefix', rubyPrefix)