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

jobs:
  stale:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
        with:
          stale-issue-message: 'This issue has been marked stale due to lack of activity. Remove the stale label or make a comment to keep this issue open, or it will be closed automatically.'
          stale-pr-message: 'This pr has been marked stale due to lack of activity. Remove the stale label, make a comment or push a commit to keep this issue open, or it will be closed automatically.'
          days-before-stale: 60
          days-before-close: 5
