Skip to content

Commit

Permalink
Merge branch 'main' into cache-samples
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanZosimov authored Aug 30, 2023
2 parents 1d90bbc + 883490d commit 2f50380
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ The `cache` input is optional, and caching is turned on by default.

The action defaults to search for the dependency file - go.sum in the repository root, and uses its hash as a part of
the cache key. Use `cache-dependency-path` input for cases when multiple dependency files are used, or they are located
in different subdirectories.
in different subdirectories. The input supports glob patterns.

If some problem that prevents success caching happens then the action issues the warning in the log and continues the execution of the pipeline.

Expand All @@ -171,7 +171,12 @@ steps:
- uses: actions/setup-go@v4
with:
go-version: '1.17'
cache-dependency-path: subdir/go.sum
check-latest: true
cache-dependency-path: |
subdir/go.sum
tools/go.sum
# cache-dependency-path: "**/*.sum"
- run: go run hello.go
```

Expand Down

0 comments on commit 2f50380

Please sign in to comment.