Show my Habitica status in a pinned Gist to build social motivation for developing good habits.
Inspired by kylemocode/medium-stat-box. Powered by GitHub Actions, GrabzIt, and habitica-avatar
@khno3 🥷 Level 72 Rogue
🩸 Health 50/50 💪 Exp 901/2160 💎 Mana 160/160
> Every pet 🦊, equipment 🗡, or level up 🔺
> represents my dedication to
> developing good habits 👏
I am now improving the feature which shows the latest avatar in a Gist.
Habitica is an open sourced habit tracker app which treats your goals like a Role Playing Game.
If you are interested in the game mechanics, please check their fandom page, for example, Damage to Player in Habitica.
-
Sign up for GrabzIt if you want to show your avatar image as well. (Please check the limitation for free accounts.)
The
Update Avatar Gist
action is unstable now. Please check Reported Bugs. -
Fork this repository.
-
Create new public GitHub Gists (https://gist.github.com/)
-
Create a token with the gist scope. (https://github.com/settings/tokens/new)
-
Take a look at
.env.template
and create your Repository Secrets of Actions (Guides for creating encrypted secrets for a repository).
-
Enable
Update Stats Gist
workflow in your repository.The
Update Avatar Gist
action is unstable now. Please check Reported Bugs. -
The cron job runs every 2 hours between 00:05 ~ 16:05 UTC. Manual
workflow_dispatch
trigger is also available.
- The
Update Avatar Gist
action is unstable now. Please check umbrella-h/habitica-stat-box/issues #14. Before the bug is fixed, it is recommanded to disable it. if you still want to update the image in you gist, please trigger it manually, and check the result to see if a retry is needed. - GitHub will suspend the scheduled trigger for GitHub action workflows if there is no commit in the repository for the past 60 days. I am trying to use gautamkrishnar/keepalive-workflow. Please check umbrella-h/habitica-stat-box/issues #18.
Edit .env
file, and run the command bellow for testing in development environment .
$ bundle exec rake dev_stats
$ bundle exec rake dev_avatar
Sequence Diagram