From 2a5386fca2f6f5aede07badd1955819bbb82d6af Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Fri, 10 Jan 2020 23:06:04 +0100 Subject: [PATCH] Improve clarity about the key for caching bundle install --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4a91cf6..1e297fc 100644 --- a/README.md +++ b/README.md @@ -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).