连续定时任务测试仓库
Go to file
giteaadmin 10c08854e4
Some checks are pending
on-push-smoke / smoke (push) Successful in 18s
continuous-cron / work (push) Successful in 7s
continuous-cron / report (push) Successful in 2s
continuous-cron / prepare (push) Has started running
chore: verify on-push workflow trigger
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-30 14:07:27 +00:00
.gitea/workflows feat: add continuous cron workflow and sample task 2026-07-30 13:48:09 +00:00
app feat: add continuous cron workflow and sample task 2026-07-30 13:48:09 +00:00
NOTES.txt chore: verify on-push workflow trigger 2026-07-30 14:07:27 +00:00
README.md feat: add continuous cron workflow and sample task 2026-07-30 13:48:09 +00:00

cron-demo

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

内容

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

本地验证

python3 app/task.py