Skip to content

Commit 69fe468

Browse files
committed
Use implicit defaults for most inputs so the GitHub Actions UI shows only the set options
1 parent dcbc29f commit 69fe468

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

action.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,27 @@ branding:
77
inputs:
88
ruby-version:
99
description: 'Engine and version to use, see the syntax in the README. Reads from .ruby-version or .tool-versions if unset.'
10-
required: false
1110
default: 'default'
1211
rubygems:
1312
description: |
14-
The version of RubyGems to use. Either 'default', 'latest', or a version number (e.g., 3.3.5).
13+
The version of RubyGems to use. Either 'default' (the default), 'latest', or a version number (e.g., 3.3.5).
1514
For 'default', no action is taken and the version of RubyGems that comes with Ruby by default is used.
1615
For 'latest', `gem update --system` is run to update to the latest RubyGems version.
1716
Similarly, if a version number is given, `gem update --system <version>` is run to update to that version of RubyGems, as long as that version is newer than the one provided by default.
18-
required: false
19-
default: 'default'
2017
bundler:
2118
description: |
2219
The version of Bundler to install. Either 'none', 'latest', 'Gemfile.lock', or a version number (e.g., 1, 2, 2.1, 2.1.4).
2320
For 'Gemfile.lock', the version is determined based on the BUNDLED WITH section from the file Gemfile.lock, $BUNDLE_GEMFILE.lock or gems.locked.
24-
Defaults to 'Gemfile.lock' if the file exists and 'latest' otherwise.
25-
required: false
26-
default: 'default'
21+
Defaults to 'default', which means 'Gemfile.lock' if the file exists and 'latest' otherwise.
2722
bundler-cache:
2823
description: 'Run "bundle install", and cache the result automatically. Either true or false.'
29-
required: false
3024
default: 'false'
3125
working-directory:
3226
description: 'The working directory to use for resolving paths for .ruby-version, .tool-versions and Gemfile.lock.'
33-
required: false
34-
default: '.'
3527
cache-version:
3628
description: |
3729
Arbitrary string that will be added to the cache key of the bundler cache. Set or change it if you need
3830
to invalidate the cache.
39-
required: false
40-
default: '0'
4131
outputs:
4232
ruby-prefix:
4333
description: 'The prefix of the installed ruby'

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const inputDefaults = {
1313
'ruby-version': 'default',
1414
'rubygems': 'default',
1515
'bundler': 'default',
16-
'bundler-cache': 'true',
16+
'bundler-cache': 'false',
1717
'working-directory': '.',
1818
'cache-version': bundler.DEFAULT_CACHE_VERSION,
1919
}

0 commit comments

Comments
 (0)