新增:《Docker安装Consul》
This commit is contained in:
10
.github/workflows/deploy-pages.yml
vendored
10
.github/workflows/deploy-pages.yml
vendored
@@ -9,23 +9,19 @@ on:
|
||||
branches: [main, master]
|
||||
# 定时执行,字段含义:分钟 小时 日 月 星期
|
||||
# 注意:
|
||||
# 1.如果没有在下方配置时区,那默认采用的是 UTC 时间
|
||||
# 1.采用的是 UTC 时间
|
||||
# 即,你配置的 0 0 * * *(UTC)00:00 实际上是(GMT+0800)08:00
|
||||
# 只有你配置为 00 16 * * *(UTC)16:00 实际上才是 GMT+0800)00:00
|
||||
# 2.官方声明:schedule 事件在 GitHub Actions 工作流运行期间负载过高时可能会延迟。 高负载时间包括每小时的开始时间。 为了降低延迟的可能性,建议将您的工作流程安排在不同时间运行。
|
||||
# 例如:笔者之前没设置时区前设定的定时规则为 0 0 * * *,实际(GMT+0800)执行时间通常在 9:10 ~ 10:00,甚至会出现在 10:00 之后执行的情况
|
||||
# 例如:笔者之前设定的定时规则为 0 0 * * *(UTC),实际(GMT+0800)执行时间通常在 9:10 ~ 10:00,甚至会出现在 10:00 之后执行的情况
|
||||
# 3.建议不只是定时执行的时候注意时间,自己 push 时也注意时间,早点休息
|
||||
# 例如:笔者多次亲身经历,凌晨时间 pages build and deployment 任务大概能持续 8 分钟的 Current status: deployment_queued 状态,
|
||||
# 即使能进入 Current status: deployment_in_progress 和 Current status: syncing_files 状态,如果文件多点,没一会儿就 Error: Timeout reached, aborting! 超时失败了
|
||||
schedule:
|
||||
- cron: 30 1 * * *
|
||||
- cron: 30 17 * * *
|
||||
# 可手动执行
|
||||
workflow_dispatch:
|
||||
|
||||
# 设置时区(默认是 UTC 时间)
|
||||
env:
|
||||
TZ: Asia/Shanghai
|
||||
|
||||
jobs:
|
||||
# 任务1: 部署 GitHub Pages
|
||||
deploy-github-pages:
|
||||
|
Reference in New Issue
Block a user