# https://github.com/marketplace/actions/delete-workflow-runs name: Delete old workflow runs on: schedule: - cron: "0 22 * * 1-5" # Schedule to run at 22:00 (10 PM) from Monday to Friday jobs: del_runs: runs-on: ubuntu-latest permissions: actions: write contents: read steps: - name: Delete workflow runs uses: Mattraks/delete-workflow-runs@v2.0.6 with: token: ${{ github.token }} repository: ${{ github.repository }} retain_days: 1 keep_minimum_runs: 5