mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-09 04:20:30 +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:
parent
4fa6849f43
commit
a5bcefbb90
1 changed files with 19 additions and 0 deletions
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
|
||||
Loading…
Reference in a new issue