Create delete-workflow-runs.yml
This commit is contained in:
committed by
GitHub
parent
1ea7d61fbb
commit
058e2cc9da
@@ -0,0 +1,18 @@
|
||||
name: Delete old workflow runs
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 12 ? * SUN' # every night at 4 am UTC
|
||||
|
||||
jobs:
|
||||
del_runs:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: write
|
||||
steps:
|
||||
- name: Delete workflow runs
|
||||
uses: Mattraks/delete-workflow-runs@v2
|
||||
with:
|
||||
token: ${{ github.token }}
|
||||
repository: ${{ github.repository }}
|
||||
retain_days: 15
|
||||
keep_minimum_runs: 4
|
||||
Reference in New Issue
Block a user