Skip to content

Commit 883490d

Browse files
Merge pull request #417 from artemgavrilov/main
Improve documentation regarding dependencies caching
2 parents d085b4f + d45ebba commit 883490d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ The `cache` input is optional, and caching is turned on by default.
159159

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

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

@@ -172,7 +172,11 @@ steps:
172172
with:
173173
go-version: '1.17'
174174
check-latest: true
175-
cache-dependency-path: subdir/go.sum
175+
cache-dependency-path: |
176+
subdir/go.sum
177+
tools/go.sum
178+
# cache-dependency-path: "**/*.sum"
179+
176180
- run: go run hello.go
177181
```
178182

0 commit comments

Comments
 (0)