This repository was archived by the owner on Sep 29, 2025. It is now read-only.
Clean old workflow runs #66
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Clean old workflow runs | |
| on: | |
| workflow_dispatch: | |
| # Run at 01:00 every six days. | |
| schedule: | |
| - cron: '0 1 */6 * *' | |
| jobs: | |
| del_runs: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| file: ['cache.yml', 'clean.yml'] | |
| permissions: | |
| actions: write | |
| contents: read | |
| steps: | |
| - name: Delete workflow runs | |
| uses: Mattraks/delete-workflow-runs@v2 | |
| with: | |
| token: ${{ github.token }} | |
| repository: ${{ github.repository }} | |
| delete_workflow_pattern: ${{ matrix.file }} | |
| retain_days: 1 | |
| keep_minimum_runs: 1 |