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

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

No files matched your search

+17
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)