Skip to content

Commit

Permalink
Update maintenance.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mprins committed Nov 19, 2023
1 parent 7e4aad6 commit 82b1760
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions .github/workflows/maintenance.yml
Expand Up @@ -6,25 +6,9 @@ on:
- cron: '11 3 * * 1'

jobs:
lock:
runs-on: ubuntu-latest
name: 'Lock stale issues and PRs'
steps:
- uses: dessant/lock-threads@v4
with:
github-token: ${{ github.token }}
issue-inactive-days: '90'
exclude-any-issue-labels: 'upstream, help-wanted'
pr-inactive-days: '60'

workflows:
runs-on: ubuntu-latest
name: Cleanup old workflow runs
steps:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 45
keep_minimum_runs: 2
action:
name: 'Repository Maintenance'
uses: mprins/.github/.github/workflows/maintenance.yml@main
with:
issue-inactive-days: '90'
pr-inactive-days: '60'

0 comments on commit 82b1760

Please sign in to comment.