From ce3fbc12994356a5112c8124fe7009f389382c0a Mon Sep 17 00:00:00 2001 From: jgstew Date: Tue, 12 Sep 2023 16:17:20 -0400 Subject: [PATCH] add example cache cleanup recipe --- .../AutoPkgCacheCleanup.example.recipe.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Recipes-Examples/AutoPkgCacheCleanup.example.recipe.yaml diff --git a/Recipes-Examples/AutoPkgCacheCleanup.example.recipe.yaml b/Recipes-Examples/AutoPkgCacheCleanup.example.recipe.yaml new file mode 100644 index 0000000..7e00b07 --- /dev/null +++ b/Recipes-Examples/AutoPkgCacheCleanup.example.recipe.yaml @@ -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+)'