name: stale

on:
  schedule:
    - cron: '30 1 * * *'

jobs:
  stale:
    runs-on: ubuntu-latest

    permissions:
      issues: write
      pull-requests: write

    steps:
      - uses: actions/stale@v9
        with:
          exempt-issue-labels: triage,v3
          stale-issue-message: 'This issue is stale because it has been open for 30 days with no activity.'
          stale-issue-label: stale
          stale-pr-label: stale
          days-before-stale: 30
          days-before-close: -1
