| 1 |
name: 'Stale issue handler' |
| 2 |
on: |
| 3 |
workflow_dispatch: |
| 4 |
schedule: |
| 5 |
- cron: '30 1 * * *' |
| 6 |
|
| 7 |
permissions: |
| 8 |
issues: write |
| 9 |
pull-requests: write |
| 10 |
|
| 11 |
jobs: |
| 12 |
stale: |
| 13 |
runs-on: ubuntu-latest |
| 14 |
steps: |
| 15 |
- uses: actions/stale@v10 |
| 16 |
id: stale |
| 17 |
with: |
| 18 |
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days' |
| 19 |
days-before-stale: 120 |
| 20 |
days-before-close: 7 |
| 21 |
stale-issue-label: stale |
| 22 |
stale-pr-label: stale |
| 23 |
exempt-issue-labels: 'blocked,must,should,keep' |
| 24 |
- name: Print outputs |
| 25 |
run: echo ${{ join(steps.stale.outputs.*, ',') }} |