feat: add option to control cache invalidation interval (#1031)

This commit is contained in:
Ludovic Fernandez
2024-05-04 17:47:25 +02:00
committed by GitHub
parent ecb32920c6
commit dbb7ebcd4c
5 changed files with 45 additions and 6 deletions

View File

@ -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)