修复:修复错误设置 GitHub Actions(UTC)定时执行时间的问题(这个问题导致了无法在预期 GMT+0800 的凌晨时间执行部署和同步)

This commit is contained in:
2022-10-02 12:22:54 +08:00
parent e701357014
commit e631a45cdb
2 changed files with 10 additions and 4 deletions

View File

@@ -7,9 +7,15 @@ on:
# pr时执行
pull_request:
branches: [main, master]
# 定时执行 00:00
# 定时执行,字段含义:分钟 小时 日 月 星期
# 注意:
# 1.时间采用的是 UTC 时间
# 例如UTC00:00 ==GMT+080008:00
# 例如UTC17:30 ==GMT+080001:30
# 2.官方声明schedule 事件在 GitHub Actions 工作流运行期间负载过高时可能会延迟。 高负载时间包括每小时的开始时间。 为了降低延迟的可能性,建议将您的工作流程安排在不同时间运行。
# 例如:笔者之前设定的定时规则为 0 0 * * *实际GMT+0800执行时间通常在 9:10 ~ 10:00甚至会出现在 10:00 之后执行的情况
schedule:
- cron: 0 0 * * *
- cron: 21 17 * * *
# 可手动执行
workflow_dispatch: