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