仓库地址: https://github.com/guangzhengli/wecom-notification-action
在 这个仓库 中,我将企业微信机器人发送消息改造成一个 GitHub action ,想实现一个定时循环发送消息的功能,帮助我每天发送不同的消息到企业微信中,提醒组内的小伙伴主持会议,这个方案实现了,也没有问题。但是没想到 GitHub action 的延迟特别严重,我定时 UTC 00:00 ,在 UTC+8 的时区 10:24AM 才触发。。。
白嫖方案感觉直接失败,不知道各位大佬有没有好点子。
![]() |
4
lisongeee 246 天前
GitHub action 的定时触发器根本不准,但是 github 提供了 api 让你可以手动触发
我现在是用 阿里云的函数计算去定时手动触发 GitHub action |
![]() |
5
lisongeee 246 天前
|
![]() |
6
janus77 246 天前
这种用法不是违规的吗
|
7
zhuweiyou 246 天前
阿里云 云函数 有免费额度
|
![]() |
8
ericgui 246 天前
github actions 自己都不推荐你把 cron 用于生产,他们自己都放弃治疗了
|
11
GreatAuk 246 天前
我有一个 action 定的是每小时,每个小时确实会触发 ,但不一定是小时内的哪分钟...
|
![]() |
13
cweijan 246 天前
用 github action 做 cron, 白嫖到这份上挺丢人的
|
![]() |
14
duzhor 246 天前
你这白票的有点离谱,建议用华为云函数定时触发
|
16
liuguang 246 天前
你这样是滥用,小心被 GitHub 封禁 Action 功能
|
17
2123123 246 天前
确实是有条款规定的
https://docs.github.com/en/site-policy/github-terms/github-terms-for-additional-products-and-features#actions 其中: if using GitHub-hosted runners, any other activity unrelated to the production, testing, deployment, or publication of the software project associated with the repository where GitHub Actions are used. 像一些签到脚本被 ban 的几率也很大,建议使用阿里云函数计算 |