mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-20 11:46:22 +02:00
Add Go modules example
This commit is contained in:
parent
6be35d19ef
commit
6abec973f5
1 changed files with 12 additions and 1 deletions
11
examples.md
11
examples.md
|
@ -96,3 +96,14 @@ uses: actions/cache@preview
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gem-
|
${{ 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