.github: delete old workflows

Add nightly cron job for automatically cleaning up old workflow runs.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-25 12:51:49 +02:00
committed by Enrico Weigelt
parent 4fa6849f43
commit a5bcefbb90

19
.github/workflows/tidy-up-auto.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: delete old workflow runs
on:
schedule:
- cron: '0 0 * * *' # nightly
jobs:
delete_old_workflow_runs:
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
steps:
- name: delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 14
keep_minimum_runs: 6