mirror of
https://github.com/actions/setup-go.git
synced 2026-04-15 00:26:50 +00:00
Fix YAML indentation in examples
This commit is contained in:
parent
d71ed6b7c8
commit
54bc444409
1 changed files with 10 additions and 9 deletions
|
|
@ -55,7 +55,7 @@ steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: actions/setup-go@v6
|
- uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: '1.25.0-rc.2'
|
go-version: '1.25.0-rc.2'
|
||||||
- run: go version
|
- run: go version
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -302,14 +302,15 @@ Besides dependencies, the action can also cache build outputs (the [`GOCACHE`](h
|
||||||
> **Note:** Including patterns like `**/*.go` can create new caches on many commits, increasing cache storage and potentially slowing workflows due to more frequent uploads/downloads.
|
> **Note:** Including patterns like `**/*.go` can create new caches on many commits, increasing cache storage and potentially slowing workflows due to more frequent uploads/downloads.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: actions/checkout@v6
|
steps:
|
||||||
- uses: actions/setup-go@v6
|
- uses: actions/checkout@v6
|
||||||
with:
|
- uses: actions/setup-go@v6
|
||||||
go-version: '1.25'
|
with:
|
||||||
cache-dependency-path: |
|
go-version: "1.25"
|
||||||
go.sum
|
cache-dependency-path: |
|
||||||
**/*.go
|
go.sum
|
||||||
- run: go run hello.go
|
**/*.go
|
||||||
|
- run: go run hello.go
|
||||||
```
|
```
|
||||||
|
|
||||||
### Restore-only caches
|
### Restore-only caches
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue