// momentum

tracking since W49

// why it's here

  • Active: last commit today
  • Built almost entirely by one person
  • Health 80/100 with only 6 stars

// how to help

// readme

worker-cron

中文 · English

中文

这是什么

此项目有一个 Cloudflare Worker,可全自动向本仓库提交没用的临时文件(文件名为 Unix 时间戳,内容为 20 个随机字母)。

Important

Note:这并不是一个 GitHub 压力测试实验,或者什么 commit 农场。这是我的定时任务基础设施。

commit 是 workflow 触发器,不是目的。

它实际在做什么

目前,每半小时它会:

  1. 触发一次 secureblue-watchdog 的 sbwatch.yml(secureblue update watch);
  2. 更新各平台上的仓库;
  3. 如果我需要,我还会加入其它定时任务。

完整链路:

CF Worker cron(每 30 分钟)
  └─ PUT /contents/<unix-timestamp>          → 提交 "chore: add timestamp file …"
       └─ push 触发 .github/workflows/cron.yml("Trigger and cleanup")
            ├─ gh workflow run sbwatch.yml -R lingyicute/secureblue-watchdog
            ├─ 删除所有"文件名为十位整数"的触发物
            └─ 提交 "chore: 删除临时文件"

所以:时间戳文件是触发物,存活约 10 秒;仓库文件树始终保持干净;贡献图上的 commit 流,是把 push 当作 workflow 触发器的副产物。

为什么不用 Actions 自带的 cron 机制?

有的。secureblue update watch 的 workflow 写了每小时运行(schedule),但根据我的观察,最少也要过三四个小时才会运行一次,甚至有时候六七个小时都没运行一次。太扯淡了。

(GitHub 官方文档也承认 scheduled workflows 在高负载时段会延迟或跳过;但实际观测到的偏移远超”偶尔延迟”。于是有了这个中继。)

为什么不直接用 API 触发 workflow,而是提交临时文件来触发?

因为相较于前者,后者更不容易被 GitHub 标记为滥用。

Read the full README on GitHub ↗

Health score

Is the project alive and maintained right now? A 0–100 pulse recomputed nightly from commit recency, rhythm, how fast issues close, and how quickly PRs get merged.

How it's calculated

Undervalued score

Activity relative to attention (stars + watchers). Above 50 means a lot of activity for a project its size. Recomputed nightly from commit velocity, contributor effort, issue resolution, fork utility, release cadence, and project maturity — divided by a logarithmic reach factor.

How it's calculated

Tags

Tags are independent behavioral signals computed nightly. A project can hold multiple at once. They drive the home page sections.

How it's calculated