File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ The `cache` input is optional, and caching is turned on by default.
159159
160160The action defaults to search for the dependency file - go.sum in the repository root, and uses its hash as a part of
161161the 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. Wildcards also supported.
163163
164164If 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
You can’t perform that action at this time.
0 commit comments