name: '😶‍🌫️ Close stale issues and PRs'
on:
  schedule:
    - cron: '30 1 * * *'

jobs:
  stale:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/stale@v4
        with:
          stale-issue-message: 'This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you for raising the concern.'
          close-issue-message: 'This issue has been automatically marked as closed because it has no recent activity.'
          stale-issue-label: 'stale'
          only-labels: 'awaiting-reply'
          exempt-issue-labels: 'triage'
          days-before-stale: 7
          days-before-close: 7
