feat: add option to control cache invalidation interval (#1031)
This commit is contained in:
committed by
GitHub
parent
ecb32920c6
commit
dbb7ebcd4c
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)
|
||||
|
Reference in New Issue
Block a user