Today is another day full of hope!
自动保持 GitHub 提交状态常绿。
使用 GitHub Actions 的定时任务功能,每隔一段时间自动执行 git commit,提交信息为 “Make Program Every Day!”
git commit
计划任务语法有 5 个字段,中间用空格分隔,每个字段代表一个时间单位。
┌───────────── 分钟 (0 - 59) │ ┌───────────── 小时 (0 - 23) │ │ ┌───────────── 日 (1 - 31) │ │ │ ┌───────────── 月 (1 - 12 或 JAN-DEC) │ │ │ │ ┌───────────── 星期 (0 - 6 或 SUN-SAT) │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ * * * * *
每个时间字段的含义:
*
* * * * *
,
1,3,4,7 * * * *
-
1-6 * * * *
/
*/15 * * * *
注:由于 GitHub Actions 的限制,如果设置为 * * * * * 实际的执行频率为每 5 分执行一次。
auto-green is released under the MIT License. See the bundled LICENSE file for details.
Powered by GerMay
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
Github代码自动Commit
自动保持 GitHub 提交状态常绿。
原理
使用 GitHub Actions 的定时任务功能,每隔一段时间自动执行
git commit,提交信息为 “Make Program Every Day!”使用
计划任务语法有 5 个字段,中间用空格分隔,每个字段代表一个时间单位。
每个时间字段的含义:
** * * * *每天每小时每分钟,1,3,4,7 * * * *每小时的 1 3 4 7 分钟-1-6 * * * *每小时的 1-6 分钟/*/15 * * * *每隔 15 分钟注:由于 GitHub Actions 的限制,如果设置为
* * * * *实际的执行频率为每 5 分执行一次。License
auto-green is released under the MIT License. See the bundled LICENSE file for details.
Powered by GerMay