Skip to content

Commit 2a5386f

Browse files
committed
Improve clarity about the key for caching bundle install
1 parent 51f9fc6 commit 2a5386f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ You can cache the installed gems with these two steps:
107107
bundle install --jobs 4 --retry 3
108108
```
109109

110-
When using a single job, replace `${{ matrix.ruby }}` with the ruby version used or `${{ hashFiles('.ruby-version') }}`.
110+
When using a single job with a Ruby version, replace `${{ matrix.ruby }}` with the Ruby version.
111+
When using `.ruby-version`, replace `${{ matrix.ruby }}` with `${{ hashFiles('.ruby-version') }}`.
111112

112113
This uses the [cache action](https://github.com/actions/cache).
113114
The code above is more complete version of the [Gem example](https://github.com/actions/cache/blob/master/examples.md#ruby---gem).

0 commit comments

Comments
 (0)