mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
.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:
committed by
Enrico Weigelt
parent
4fa6849f43
commit
a5bcefbb90
19
.github/workflows/tidy-up-auto.yml
vendored
Normal file
19
.github/workflows/tidy-up-auto.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user