| 1 | --- |
| 2 | name: Delete old workflow runs |
| 3 | on: |
| 4 | schedule: |
| 5 | - cron: '0 15 14 * *' |
| 6 | # Run monthly, at 15:00 on the 14t day of month. (testing) |
| 7 | |
| 8 | jobs: |
| 9 | del_runs: |
| 10 | runs-on: ubuntu-latest |
| 11 | permissions: |
| 12 | actions: write |
| 13 | steps: |
| 14 | - name: Delete workflow runs |
| 15 | uses: Mattraks/delete-workflow-runs@v2 |
| 16 | with: |
| 17 | token: ${{ github.token }} |
| 18 | repository: ${{ github.repository }} |
| 19 | retain_days: 30 |
| 20 | keep_minimum_runs: 6 |