1name: 'Repository Maintenance' 2 3on: 4 workflow_dispatch: 5 schedule: 6 - cron: '47 6 * * 6' 7 8jobs: 9 lock: 10 runs-on: ubuntu-latest 11 name: 'Lock stale issues and PRs' 12 steps: 13 - uses: dessant/lock-threads@v4 14 with: 15 github-token: ${{ github.token }} 16 issue-inactive-days: '90' 17 exclude-any-issue-labels: 'help wanted' 18 pr-inactive-days: '60' 19 20 workflows: 21 runs-on: ubuntu-latest 22 name: Cleanup old workflow runs 23 steps: 24 - name: Delete workflow runs 25 uses: Mattraks/delete-workflow-runs@v2 26 with: 27 token: ${{ github.token }} 28 repository: ${{ github.repository }} 29 retain_days: 45 30 keep_minimum_runs: 2 31