[Fix]: update stale workflow (#1825)

* fix

* add job permission

* update
pull/1606/merge
RunningLeon 2023-03-23 14:59:56 +08:00 committed by GitHub
parent dba46c3496
commit 39c3282966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -6,13 +6,16 @@ on:
- cron: '30 1 * * *'
permissions:
contents: write
contents: read
jobs:
stale:
permissions:
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v6
- uses: actions/stale@v7
with:
stale-issue-message: 'This issue is marked as stale because it has been marked as invalid or awaiting response for 7 days without any further response. It will be closed in 5 days if the stale label is not removed or if there is no further response.'
stale-pr-message: 'This PR is marked as stale because there has been no activity in the past 45 days. It will be closed in 10 days if the stale label is not removed or if there is no further updates.'
@ -26,3 +29,4 @@ jobs:
days-before-pr-close: 10
# automatically remove the stale label when the issues or the pull reqquests are updated or commented
remove-stale-when-updated: true
operations-per-run: 50