legado/.github/workflows/stale.yml

30 lines
801 B
YAML
Raw Normal View History

# 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:
jobs:
stale:
runs-on: ubuntu-latest
2023-03-17 10:13:06 +08:00
if: ${{ github.repository == 'gedoor/legado' }}
permissions:
issues: write
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: '由于长期没有状态更新该问题将于5天后自动关闭。如有需要可重新打开。'
days-before-stale: 30
days-before-close: 5
2023-09-13 14:49:29 +08:00
operations-per-run: 100