2022-03-04 16:48:05 +08:00
|
|
|
|
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
|
|
|
|
|
#
|
|
|
|
|
# You can adjust the behavior by modifying this file.
|
|
|
|
|
# For more information, see:
|
|
|
|
|
# https://github.com/actions/stale
|
|
|
|
|
name: closeStaleIssue
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
schedule:
|
2023-03-25 19:07:25 +08:00
|
|
|
|
# 每5天北京时间9点
|
|
|
|
|
- cron: '30 1 1/5 * *'
|
2023-09-13 14:40:14 +08:00
|
|
|
|
workflow_dispatch:
|
2022-03-04 16:48:05 +08:00
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
stale:
|
|
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
2023-03-17 10:13:06 +08:00
|
|
|
|
if: ${{ github.repository == 'gedoor/legado' }}
|
2022-03-04 16:48:05 +08:00
|
|
|
|
permissions:
|
|
|
|
|
issues: write
|
|
|
|
|
|
|
|
|
|
steps:
|
2023-12-11 13:00:23 +08:00
|
|
|
|
- uses: actions/stale@v9
|
2022-03-04 16:48:05 +08:00
|
|
|
|
with:
|
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
2022-03-04 17:00:44 +08:00
|
|
|
|
stale-issue-message: '由于长期没有状态更新,该问题将于5天后自动关闭。如有需要可重新打开。'
|
2022-03-04 16:48:05 +08:00
|
|
|
|
days-before-stale: 30
|
|
|
|
|
days-before-close: 5
|
2023-09-13 14:49:29 +08:00
|
|
|
|
operations-per-run: 100
|