mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
Add nightly cron job for automatically cleaning up old workflow runs. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
20 lines
524 B
YAML
20 lines
524 B
YAML
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
|