我有一个每小时触发一次的 Github Actions 工作流。
虽然工作流确实运行,但它不会在计划的时间运行,即它不会在整点运行。有可能超过 30 分钟的延迟。我不知道这是为什么。
它不是工作流本身,因为它会在我在大约 30 秒内手动运行时执行。
有人可以告诉我是什么导致了延迟?
是时区问题吗?即便如此,两次连续的工作流运行之间应该有 1 小时的固定间隔,但事实并非如此。
这是代码。
# This is a basic workflow to help you get started with Actions
name: Email every hour
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "0 */1 * * *"
# Allows you to run this …Run Code Online (Sandbox Code Playgroud)