A Zero-Cost Cloud Cron Job That Checks Into WorkBuddy and Pings Your WeChat
Free cloud CI runners like Gitee Go turn a one-off Python script into a hands-off scheduled job without a server, a credit card, or a machine that stays powered on. For developers outside China, the same pattern applies to any CI platform with cron triggers (GitHub Actions, GitLab CI) paired with a push notification service like Pushover or a Slack webhook.
A single Python script, using only the standard library, reads an access token from a private repo's config file and calls Tencent's WorkBuddy check-in API. It runs on Gitee Go's free CI/CD pipeline, triggered by a cron expression at 09:05 Beijing time every day. The script checks whether today's check-in has already been claimed, executes it if not, and reports the points earned.
Notifications land directly in a personal WeChat account through the free ServerChan push service. The setup eliminates the single point of failure in local automation: a laptop that's asleep or offline. A private Gitee repository holds the token and SendKey, keeping credentials out of public view while the pipeline pulls them at runtime.
Compared to macOS launchd, cloud functions, or GitHub Actions, this combination prioritizes domestic network speed and zero maintenance beyond refreshing an expiring token. The same pattern works for any periodic task that needs an API call and a notification channel.
Treating a CI pipeline as a free cron runner is a lightweight alternative to serverless functions for low-frequency, low-stakes automation; the trade-off is less precise scheduling and no guaranteed execution window.
The script's fallback chain for token sources (config file → env var → local auth file) is a practical pattern for any automation that needs to run both on a developer's machine and in a CI environment without code changes.
ServerChan's zero-cost WeChat push fills a gap that Western developers typically solve with paid services like Pushover or by wiring up a Slack/Discord webhook, which often requires a persistent bot or app registration.