docs: 补充 GitHub Actions cron 调度配置注释

This commit is contained in:
sansan 2025-11-27 13:30:34 +08:00
parent 648f8afd8e
commit 8ed4afb05b

View File

@ -1,6 +1,14 @@
name: Hot News Crawler
on:
schedule:
# ⚠️ 重要提示:我们使用的是 GitHub 官方提供的资源来进行的推送,而每个账号的资源是限额的
# 为了不被官方判定为滥用而面临封号的风险,不建议设置比半小时更短的执行间隔
#
# Cron 表达式示例注意GitHub Actions 使用 UTC 时间,北京时间需要减 8 小时):
# - "0 * * * *" # 每小时整点运行一次(实际有偏差)
# - "*/30 * * * *" # 每 30 分钟执行一次
# - "*/30 0-14 * * *" # 每天 UTC 0:00-14:00北京时间 8:00-22:00每 30 分钟运行一次
# - "0 0,6,12,18 * * *" # 每天 UTC 0:00,6:00,12:00,18:00北京时间 8:00,14:00,20:00,次日2:00
- cron: "0 * * * *"
workflow_dispatch: