Skip to content

Clean Old Data

Clean Old Data #579

---
name: Clean Old Data
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions: read-all
jobs:
clean:
runs-on: ubuntu-22.04
steps:
# https://github.com/Mattraks/delete-workflow-runs
- name: Remove expired workflow runs
uses: Mattraks/delete-workflow-runs@c3872d103f18a947d291cd2c3c81c90397b4b830
with:
token: ${{ secrets.FOR_WEBHOOKS_SECRET }}
retain_days: 1
keep_minimum_runs: 2