diff options
Diffstat (limited to '.github/workflows/cleanup.yml')
-rw-r--r-- | .github/workflows/cleanup.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml new file mode 100644 index 0000000..74e8d4a --- /dev/null +++ b/.github/workflows/cleanup.yml @@ -0,0 +1,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 |