File tree 1 file changed +6
-2
lines changed
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.
159
159
160
160
The action defaults to search for the dependency file - go.sum in the repository root, and uses its hash as a part of
161
161
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.
163
163
164
164
If some problem that prevents success caching happens then the action issues the warning in the log and continues the execution of the pipeline.
165
165
@@ -172,7 +172,11 @@ steps:
172
172
with:
173
173
go-version: '1.17'
174
174
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
+
176
180
- run: go run hello.go
177
181
` ` `
178
182
You can’t perform that action at this time.
0 commit comments