Improve clarity about the key for caching bundle install

This commit is contained in:
Benoit Daloze
2020-01-10 23:06:04 +01:00
parent 51f9fc6d8a
commit 2a5386fca2
+2 -1
View File
@@ -107,7 +107,8 @@ You can cache the installed gems with these two steps:
bundle install --jobs 4 --retry 3
```
When using a single job, replace `${{ matrix.ruby }}` with the ruby version used or `${{ hashFiles('.ruby-version') }}`.
When using a single job with a Ruby version, replace `${{ matrix.ruby }}` with the Ruby version.
When using `.ruby-version`, replace `${{ matrix.ruby }}` with `${{ hashFiles('.ruby-version') }}`.
This uses the [cache action](https://github.com/actions/cache).
The code above is more complete version of the [Gem example](https://github.com/actions/cache/blob/master/examples.md#ruby---gem).