Do not show a "Installing Bundler" group if bundler: none

* That was rather confusing.
This commit is contained in:
Benoit Daloze
2020-04-05 20:04:22 +02:00
parent 463c3a8161
commit f25e77d702
2 changed files with 8 additions and 10 deletions
+4 -5
View File
@@ -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()