Install Bundler 1 on Windows for Ruby < 2.6 without Bundler
This commit is contained in:
+1
-1
@@ -6495,7 +6495,7 @@ async function downloadExtractAndSetPATH(ruby) {
|
|||||||
core.exportVariable('PATH', newPath)
|
core.exportVariable('PATH', newPath)
|
||||||
|
|
||||||
if (!fs.existsSync(`${rubyPrefix}\\bin\\bundle.cmd`)) {
|
if (!fs.existsSync(`${rubyPrefix}\\bin\\bundle.cmd`)) {
|
||||||
await exec.exec(`${rubyPrefix}\\bin\\gem install bundler --no-document`)
|
await exec.exec(`${rubyPrefix}\\bin\\gem install bundler -v "~> 1" --no-document`)
|
||||||
}
|
}
|
||||||
|
|
||||||
return rubyPrefix
|
return rubyPrefix
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ export async function downloadExtractAndSetPATH(ruby) {
|
|||||||
core.exportVariable('PATH', newPath)
|
core.exportVariable('PATH', newPath)
|
||||||
|
|
||||||
if (!fs.existsSync(`${rubyPrefix}\\bin\\bundle.cmd`)) {
|
if (!fs.existsSync(`${rubyPrefix}\\bin\\bundle.cmd`)) {
|
||||||
await exec.exec(`${rubyPrefix}\\bin\\gem install bundler --no-document`)
|
await exec.exec(`${rubyPrefix}\\bin\\gem install bundler -v "~> 1" --no-document`)
|
||||||
}
|
}
|
||||||
|
|
||||||
return rubyPrefix
|
return rubyPrefix
|
||||||
|
|||||||
Reference in New Issue
Block a user