.github: delete old workflows
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run

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
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