File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-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. The input supports glob patterns.
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
@@ -171,7 +171,12 @@ steps:
171171 - uses: actions/setup-go@v4
172172 with:
173173 go-version: '1.17'
174- cache-dependency-path: subdir/go.sum
174+ check-latest: true
175+ cache-dependency-path: |
176+ subdir/go.sum
177+ tools/go.sum
178+ # cache-dependency-path: "**/*.sum"
179+
175180 - run: go run hello.go
176181 ` ` `
177182
You can’t perform that action at this time.
0 commit comments