name: 'Mark and close stale issues'
on:
  schedule:
    - cron: '30 1 * * *'

jobs:
  stale:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/stale@v5
        with:
          stale-issue-message: 'This issue was marked as stale due to lack of activity. It will be closed in 7 days if no furthur activity occurs.'
          close-issue-message: 'Closed as inactive. Feel free to reopen if this is still an issue.'
          days-before-issue-stale: 60
          days-before-issue-close: 7
          exempt-issue-labels: 'do-not-stale'
