cron-demo/README.md
giteaadmin 85f2b4fc20
Some checks failed
on-push-smoke / smoke (push) Failing after 2m45s
feat: add continuous cron workflow and sample task
Add a schedule workflow every 2 minutes with chained jobs,
plus a push smoke workflow to verify the runner immediately.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-30 13:48:09 +00:00

361 B
Raw Permalink Blame History

cron-demo

用 Gitea Actions 测试连续定时任务的示例仓库。

内容

  • app/task.py:模拟业务任务,每次运行写入一条记录
  • .gitea/workflows/cron.yml:每 2 分钟定时触发3 个 job 串联
  • .gitea/workflows/on-push.yml:推送时触发,方便立刻验证 runner

本地验证

python3 app/task.py