mirror of
https://github.com/actions/cache.git
synced 2025-04-22 03:56:45 +00:00
[Ruby] Fix the cache gems example
and remove trailing spaces
This commit is contained in:
parent
f9c9166ecb
commit
c244938383
1 changed files with 4 additions and 4 deletions
|
@ -140,7 +140,7 @@ For npm, cache files are stored in `~/.npm` on Posix, or `%AppData%/npm-cache` o
|
||||||
|
|
||||||
### Using multiple systems and `npm config`
|
### Using multiple systems and `npm config`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Get npm cache directory
|
- name: Get npm cache directory
|
||||||
id: npm-cache
|
id: npm-cache
|
||||||
run: |
|
run: |
|
||||||
|
@ -171,7 +171,7 @@ The yarn cache directory will depend on your operating system and version of `ya
|
||||||
|
|
||||||
## PHP - Composer
|
## PHP - Composer
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Get Composer Cache Directory
|
- name: Get Composer Cache Directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
run: |
|
run: |
|
||||||
|
@ -305,9 +305,9 @@ Replace `~/.local/share/renv` with the correct `path` if not using Ubuntu.
|
||||||
- uses: actions/cache@v1
|
- uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: vendor/bundle
|
path: vendor/bundle
|
||||||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gems-
|
${{ runner.os }}-gem-
|
||||||
```
|
```
|
||||||
When dependencies are installed later in the workflow, we must specify the same path for the bundler.
|
When dependencies are installed later in the workflow, we must specify the same path for the bundler.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue