workflows: Update stale-issue-bot.yaml to also close invalid tickets

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-02-02 13:22:35 -05:00
parent c4633f9451
commit 891852ed9c
1 changed files with 12 additions and 1 deletions

View File

@ -2,7 +2,7 @@
name: "Close stale issues"
on:
schedule:
- cron: "0 0 * * *"
- cron: '0 0 * * *'
jobs:
stale:
runs-on: ubuntu-latest
@ -29,3 +29,14 @@ jobs:
exempt-issue-labels: 'enhancement,bug'
days-before-stale: 21
days-before-close: 7
invalid:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-label: invalid
stale-pr-label: invalid
days-before-stale: -1
days-before-close: 2
remove-stale-when-updated: false