mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-11-09 22:53:43 +03:00
feat: add option to control cache invalidation interval (#1031)
This commit is contained in:
1 parent
ecb32920c6
commit
dbb7ebcd4c
5 files changed
+45
-6
No files matched your search
@@ -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