Skip to content

Commit

Permalink
ci: add workflow runs clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Cat committed Jun 20, 2024
1 parent 102d293 commit ac636dc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/workflow_runs_clean_up.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Delete old workflow runs
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

jobs:
del_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: 7
keep_minimum_runs: 1

0 comments on commit ac636dc

Please sign in to comment.