mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-04-24 04:28:50 +00:00
feat: add option to control cache invalidation interval (#1031)
This commit is contained in:
parent
ecb32920c6
commit
dbb7ebcd4c
5 changed files with 45 additions and 6 deletions
17
README.md
17
README.md
|
|
@ -195,6 +195,23 @@ with:
|
|||
# ...
|
||||
```
|
||||
|
||||
### `cache-invalidation-interval`
|
||||
|
||||
(optional)
|
||||
|
||||
Periodically invalidate the cache every `cache-invalidation-interval` days to ensure that outdated data is removed and fresh data is loaded.
|
||||
|
||||
The default value is `7`.
|
||||
|
||||
```yml
|
||||
uses: golangci/golangci-lint-action@v5
|
||||
with:
|
||||
cache-invalidation-interval: 15
|
||||
# ...
|
||||
```
|
||||
|
||||
If set the number is `<= 0`, the cache will be always invalidate (Not recommended).
|
||||
|
||||
### `annotations`
|
||||
|
||||
(optional)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue