diff --git a/.github/workflows/delete-old-workflows.yml b/.github/workflows/delete-old-workflows.yml new file mode 100644 index 000000000..d10823510 --- /dev/null +++ b/.github/workflows/delete-old-workflows.yml @@ -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