mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
Do not show a "Installing Bundler" group if bundler: none
* That was rather confusing.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user