Skip to content

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

License

Notifications You must be signed in to change notification settings

code-in-gym/task_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

67a6ffb Â· Jun 3, 2023

History

11 Commits
Jun 3, 2023
Jun 3, 2023
Jun 3, 2023
Jun 3, 2023
Jun 3, 2023
May 30, 2023
May 30, 2023
Jun 3, 2023
Jun 3, 2023
Jun 3, 2023
Jun 3, 2023
Jun 3, 2023

Repository files navigation

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 sender@mail.com
EMAIL_TO task_to@mail.com
  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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages