Skip to content

Commit 4c65fe8

Browse files
committed
Add bundler-cache, allow running setup-ruby separately
1 parent 55f53bf commit 4c65fe8

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

action.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
name: 'Setup Ruby Pkgs'
2-
description: 'Cross platform action for setting up Ruby build environments'
2+
description: 'Cross platform action for setting up Ruby build environments. Runs ruby/setup-ruby, see input info'
33
author: 'MSP-Greg'
44
inputs:
55
ruby-version:
6-
description: 'Ruby version'
6+
description: 'Used by ruby/setup-ruby. Ruby version. A value of "none" will bypass running ruby/setup-ruby'
77
required: false
88
default: 'default'
99
bundler:
10-
description: 'The version of Bundler to install. Either none, 1, 2, latest or Gemfile.lock. The default tries Gemfile.lock and otherwise uses latest.'
10+
description: 'Used by ruby/setup-ruby. The version of Bundler to install. Either none, 1, 2, latest or Gemfile.lock. The default tries Gemfile.lock and otherwise uses latest.'
1111
required: false
1212
default: 'default'
13+
bundler-cache:
14+
description: 'Used by ruby/setup-ruby. Run "bundle install", and cache the result automatically. Either true or false.'
15+
required: false
16+
default: 'true'
1317
working-directory:
14-
description: 'The working directory to use for resolving paths for .ruby-version, .tool-versions and Gemfile.lock.'
18+
description: 'Used by ruby/setup-ruby. The working directory to use for resolving paths for .ruby-version, .tool-versions and Gemfile.lock.'
1519
required: false
1620
default: '.'
1721
apt-get:

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,7 @@ module.exports = require("fs");
17601760
console.log(`Using Image ${process.env.ImageOS} / ${process.env.ImageVersion}`)
17611761
}
17621762

1763-
if (core.getInput('ruby-version') !== '') {
1763+
if (core.getInput('ruby-version') !== 'none') {
17641764
const fn = `${process.env.RUNNER_TEMP}\\setup_ruby.js`
17651765
common.log(' Running ruby/setup-ruby')
17661766
console.log(` pwd: ${process.cwd()}`)

dist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-ruby-pkgs",
3-
"version": "1.12.0",
3+
"version": "1.13.0",
44
"description": "Install packages and update builds tools for Ruby",
55
"main": "index.js",
66
"scripts": {

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
console.log(`Using Image ${process.env.ImageOS} / ${process.env.ImageVersion}`)
2828
}
2929

30-
if (core.getInput('ruby-version') !== '') {
30+
if (core.getInput('ruby-version') !== 'none') {
3131
const fn = `${process.env.RUNNER_TEMP}\\setup_ruby.js`
3232
common.log(' Running ruby/setup-ruby')
3333
console.log(` pwd: ${process.cwd()}`)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-ruby-pkgs",
3-
"version": "1.12.0",
3+
"version": "1.13.0",
44
"description": "Install packages and update builds tools for Ruby",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)