mirror of
https://gitee.com/houhuan/TrendRadar.git
synced 2025-12-21 11:17:15 +08:00
docs: 补充 GitHub Actions cron 调度配置注释
This commit is contained in:
parent
648f8afd8e
commit
8ed4afb05b
8
.github/workflows/crawler.yml
vendored
8
.github/workflows/crawler.yml
vendored
@ -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:
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user