Skip to content

Commit f25e77d

Browse files
committed
Do not show a "Installing Bundler" group if bundler: none
* That was rather confusing.
1 parent 463c3a8 commit f25e77d

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

dist/index.js

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ export async function run() {
2626

2727
setupPath(ruby, newPathEntries)
2828

29-
await common.measure('Installing Bundler', async () =>
30-
installBundler(platform, rubyPrefix, engine, version))
29+
if (core.getInput('bundler') !== 'none') {
30+
await common.measure('Installing Bundler', async () =>
31+
installBundler(platform, rubyPrefix, engine, version))
32+
}
3133

3234
core.setOutput('ruby-prefix', rubyPrefix)
3335
} catch (error) {
@@ -135,9 +137,6 @@ function readBundledWithFromGemfileLock() {
135137

136138
async function installBundler(platform, rubyPrefix, engine, rubyVersion) {
137139
var bundlerVersion = core.getInput('bundler')
138-
if (bundlerVersion === 'none') {
139-
return
140-
}
141140

142141
if (bundlerVersion === 'default' || bundlerVersion === 'Gemfile.lock') {
143142
bundlerVersion = readBundledWithFromGemfileLock()

0 commit comments

Comments
 (0)