summaryrefslogtreecommitdiff
path: root/.github/workflows/cleanup.yml
blob: 74e8d4a18a25fbae33d8e63fe4793a4acff748e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: Cleanup

on:
  schedule:
    - cron: '0 0 */16 * *'
  workflow_dispatch:

jobs:
  delete_runs:
    permissions:
      actions: write
    runs-on: ubuntu-latest

    steps:
      - name: Delete workflow runs
        uses: Mattraks/delete-workflow-runs@main
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          repository: ${{ github.repository }}
          retain_days: 30
          keep_minimum_runs: 4