Skip to content

Commit

Permalink
Merge pull request #1 from artemgavrilov/caching-docs-improvement
Browse files Browse the repository at this point in the history
Improve documentation regarding dependencies caching
  • Loading branch information
artemgavrilov authored Aug 25, 2023
2 parents d085b4f + 8018234 commit f90673a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 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. Wildcards also supported.

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 @@ -172,7 +172,11 @@ steps:
with:
go-version: '1.17'
check-latest: true
cache-dependency-path: subdir/go.sum
cache-dependency-path: |
subdir/go.sum
tools/go.sum
# cache-dependency-path: "**/*.sum"
- run: go run hello.go
```

Expand Down

0 comments on commit f90673a

Please sign in to comment.