Skip to content

Commit

Permalink
add example cache cleanup recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Sep 12, 2023
1 parent f5cf150 commit ce3fbc1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Recipes-Examples/AutoPkgCacheCleanup.example.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
Description: Example AutoPkgCacheCleanup Recipe
Identifier: com.github.jgstew.example.AutoPkgCacheCleanup
Input:
NAME: AutoPkgCacheCleanupExample
MinimumVersion: "2.3"
Process:
# https://github.com/jgstew/jgstew-recipes/blob/main/SharedProcessors/AutoPkgCacheCleanup.py
- Processor: com.github.jgstew.SharedProcessors/AutoPkgCacheCleanup
Arguments:
cleanup_max_age_days: 20
cleanup_empty_files: True
cleanup_tmp_files: True
cleanup_cache_all: True

- Processor: com.github.jgstew.SharedProcessors/TextSearcher
Arguments:
input_string: "%num_files_deleted%"
re_pattern: '(\d+)'

0 comments on commit ce3fbc1

Please sign in to comment.