name: 'Close stale issues and PRs'
on:
  schedule:
    - cron: '30 1 * * *'

jobs:
  stale:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/stale@v8
        with:
          stale-issue-message: 'This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
          days-before-stale: 120
          days-before-close: 7
          exempt-all-pr-assignees: true
          exempt-all-assignees: true
          exempt-all-pr-milestones: true
          exempt-all-issue-milestones: true
          start-date: '2019-02-01T00:00:00Z'
