Skip to content

Commit c28669c

Browse files
committed
Mention the new working-directory input in the README
1 parent 9f60be7 commit c28669c

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ This uses the [cache action](https://github.com/actions/cache).
134134
The code above is a more complete version of the [Ruby - Bundler example](https://github.com/actions/cache/blob/master/examples.md#ruby---bundler).
135135
Make sure to include `use-ruby` in the `key` to avoid conflicting with previous caches.
136136

137+
### Working Directory
138+
139+
The `working-directory` input can be set to resolve `.ruby-version`, `.tool-versions` and `Gemfile.lock`
140+
if they are not at the root of the repository, see [action.yml](action.yml) for details.
141+
137142
## Windows
138143

139144
Note that running CI on Windows can be quite challenging if you are not very familiar with Windows.

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ branding:
66
icon: download
77
inputs:
88
ruby-version:
9-
description: 'Engine and version to use, see the syntax in the README. Reads from .ruby-version if unset.'
9+
description: 'Engine and version to use, see the syntax in the README. Reads from .ruby-version or .tool-versions if unset.'
1010
required: false
1111
default: 'default'
1212
bundler:
1313
description: 'The version of Bundler to install. Either none, 1, 2, latest or Gemfile.lock. The default tries Gemfile.lock and otherwise uses latest.'
1414
required: false
1515
default: 'default'
1616
working-directory:
17-
description: 'The working directory to use for this path. Useful if files like .ruby-version are somewhere other than the root of your repository. Defaults to leaving it unchanged.'
17+
description: 'The working directory to use for resolving paths for .ruby-version, .tool-versions and Gemfile.lock.'
1818
required: false
1919
default: '.'
2020
outputs:

0 commit comments

Comments
 (0)