Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.13 KB

README_ZH.md

File metadata and controls

49 lines (34 loc) · 1.13 KB

task_bot

一个发送日常任务,帮助养成日常习惯的机器人,由 GitHub Actions 驱动。

English

工作原理

  1. daily.toml 配置日常任务
[task.reading]
describe = "今天的回顾旧书是 %v, 享受阅读的乐趣吧!"
tasks = [
     "《这些人那些事》",
     "《The Minimalist Entrepreneur》",
     "《侠隐》",
]
  1. 把邮件配置添加到 Actions secrets

去仓库页面 -> Settings -> Security -- Secrets and variables -> Actions -> New repository secret

Name Secret(示例)
EMAIL_SERVER smtp.mail.com:587
EMAIL_USER who_send_task
EMAIL_PASS sender_password
EMAIL_FROM [email protected]
EMAIL_TO [email protected]
  1. send_task.yml 编排任务时间
on:
  schedule:
    - cron: '* 2 * * *' # 每天 UTC 时间早上两点发送日常任务细节的邮件给你

更多配置方法: cron config

还有一件事

如果你想要更多新功能,开一个 issue 告诉我。

许可证

MIT