Skip to content

Commit

Permalink
Update maintenance.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mprins authored Nov 19, 2023
1 parent 0a137de commit cd9e0fc
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions .github/workflows/maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,9 @@ on:
- cron: '7 3 * * 6'

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 cd9e0fc

Please sign in to comment.