mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-11 12:51:31 +02:00
Add Go modules example
This commit is contained in:
parent
6be35d19ef
commit
6abec973f5
1 changed files with 12 additions and 1 deletions
13
examples.md
13
examples.md
|
@ -95,4 +95,15 @@ uses: actions/cache@preview
|
|||
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gem-
|
||||
```
|
||||
```
|
||||
|
||||
## Go - Modules
|
||||
|
||||
```yaml
|
||||
- uses: actions/cache@preview
|
||||
with:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue