Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.09 KB

README.md

File metadata and controls

48 lines (34 loc) · 1.09 KB

task_bot

A robot that sends a daily task and motivates to cultivate a daily habit, power by GitHub Actions.

中文

How it works

  1. config daily task in daily.toml
[task.reading]
describe = "Today's review of an old book is %v. Enjoy reading for fun!"
tasks = [
    "《animal farm》",
    "《The Minimalist Entrepreneur》",
    "《Lemo》",
]
  1. add email config to Actions secrets

Go to repository page -> Settings -> Security -- Secrets and variables -> Actions -> New repository secret

Name Secret(example)
EMAIL_SERVER smtp.mail.com:587
EMAIL_USER who_send_task
EMAIL_PASS sender_password
EMAIL_FROM [email protected]
EMAIL_TO [email protected]
  1. schedule task in send_task.yml
on:
  schedule:
    - cron: '* 2 * * *' # send you email with task detail at 2:00 AM UTC every day

more: cron config

One more thing

Tell me with an issue if you want more feature about this project.

License

MIT