name: Mark stale issues
on:
  workflow_dispatch: {}
  schedule:
  - cron: "30 1 * * *"

jobs:
  stale:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/stale@v3
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}
        stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
        close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
        stale-issue-label: 'stale'
        days-before-stale: 30
        days-before-close: 5
        start-date: '2018-06-01T00:00:00+00:00'
        exempt-issue-labels: 'priority/critical,priority/important-longterm,priority/important-soon,priority/weave,good first issue,pinned'
