From 3c6e75e22db5f644a059c36b757076b4eef6dbec Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Tue, 18 Feb 2025 09:56:45 +0100 Subject: [PATCH] build: run source cache clean daily (#45656) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr --- .github/workflows/clean-src-cache.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/clean-src-cache.yml b/.github/workflows/clean-src-cache.yml index 73af458ba730..f1bd158a4eb2 100644 --- a/.github/workflows/clean-src-cache.yml +++ b/.github/workflows/clean-src-cache.yml @@ -1,8 +1,12 @@ name: Clean Source Cache +description: | + This workflow cleans up the source cache on the cross-instance cache volume + to free up space. It runs daily at midnight and clears files older than 15 days. + on: schedule: - - cron: "0 0 * * SUN" # Run at midnight every Sunday + - cron: "0 0 * * *" jobs: clean-src-cache: @@ -17,5 +21,5 @@ jobs: shell: bash run: | df -h /mnt/cross-instance-cache - find /mnt/cross-instance-cache -type f -mtime +30 -delete + find /mnt/cross-instance-cache -type f -mtime +15 -delete df -h /mnt/cross-instance-cache