clean-crawler.yml 858 B

12345678910111213141516171819202122232425262728
  1. name: Check In
  2. # ✅ 签到续期:运行此 workflow 可重置 7 天计时,保持 "Get Hot News" 正常运行
  3. # ✅ Renewal: Run this workflow to reset the 7-day timer and keep "Get Hot News" active
  4. #
  5. # 📌 操作方法 / How to use:
  6. # 1. 点击 "Run workflow" 按钮 / Click "Run workflow" button
  7. # 2. 每 7 天内至少运行一次 / Run at least once every 7 days
  8. on:
  9. workflow_dispatch:
  10. jobs:
  11. del_runs:
  12. runs-on: ubuntu-latest
  13. permissions:
  14. actions: write
  15. contents: read
  16. steps:
  17. - name: Delete all workflow runs
  18. uses: Mattraks/delete-workflow-runs@v2
  19. with:
  20. token: ${{ github.token }}
  21. repository: ${{ github.repository }}
  22. retain_days: 0
  23. keep_minimum_runs: 0
  24. delete_workflow_by_state_pattern: "ALL"
  25. delete_run_by_conclusion_pattern: "ALL"