mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
feat: add GH action to remove old workflow logs (#248)
This commit is contained in:
parent
693498484a
commit
6647bdc31c
18
.github/workflows/delete-old-workflows.yml
vendored
Normal file
18
.github/workflows/delete-old-workflows.yml
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
name: Delete old workflow runs
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
delete_old_runs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Delete old workflow runs
|
||||
uses: Mattraks/delete-workflow-runs@v2
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
repository: ${{ github.repository }}
|
||||
retain_days: 14
|
||||
keep_minimum_runs: 50
|
||||
Loading…
Reference in a new issue