diff --git a/dist/index.js b/dist/index.js index beb3989..40b18d8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -984,8 +984,10 @@ async function run() { setupPath(ruby, newPathEntries) - await common.measure('Installing Bundler', async () => - installBundler(platform, rubyPrefix, engine, version)) + if (core.getInput('bundler') !== 'none') { + await common.measure('Installing Bundler', async () => + installBundler(platform, rubyPrefix, engine, version)) + } core.setOutput('ruby-prefix', rubyPrefix) } catch (error) { @@ -1093,9 +1095,6 @@ function readBundledWithFromGemfileLock() { async function installBundler(platform, rubyPrefix, engine, rubyVersion) { var bundlerVersion = core.getInput('bundler') - if (bundlerVersion === 'none') { - return - } if (bundlerVersion === 'default' || bundlerVersion === 'Gemfile.lock') { bundlerVersion = readBundledWithFromGemfileLock() diff --git a/index.js b/index.js index a3674cb..a7dda15 100644 --- a/index.js +++ b/index.js @@ -26,8 +26,10 @@ export async function run() { setupPath(ruby, newPathEntries) - await common.measure('Installing Bundler', async () => - installBundler(platform, rubyPrefix, engine, version)) + if (core.getInput('bundler') !== 'none') { + await common.measure('Installing Bundler', async () => + installBundler(platform, rubyPrefix, engine, version)) + } core.setOutput('ruby-prefix', rubyPrefix) } catch (error) { @@ -135,9 +137,6 @@ function readBundledWithFromGemfileLock() { async function installBundler(platform, rubyPrefix, engine, rubyVersion) { var bundlerVersion = core.getInput('bundler') - if (bundlerVersion === 'none') { - return - } if (bundlerVersion === 'default' || bundlerVersion === 'Gemfile.lock') { bundlerVersion = readBundledWithFromGemfileLock()