From 7611296bb3a8babd294b5a716ab096cc16ffc281 Mon Sep 17 00:00:00 2001 From: Kosuke Ogawa Date: Thu, 31 Oct 2019 23:45:47 +0900 Subject: [PATCH] Add Ruby Gem example (#4) --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index c42b1f6..32546d2 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,16 @@ jobs: key: ${{ runner.os }}-maven ``` +### Ruby - Gem +```yaml +- uses: actions/cache@preview + with: + path: vendor/bundle + key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gem- +``` + ## Cache Limits Individual caches are limited to 200MB and a repository can have up to 2GB of caches. Once the 2GB limit is reached, older caches will be evicted based on when the cache was last accessed.