How to update your Profile README with your Todoist Stats

How to update your Profile README with your Todoist Stats

Hi There

Wouldn’t it be awesome if your Profile README was updated with your Todoist Stats automatically, with you writing it yourself?

Well I’m here to tell you there is.

Firstly you should add the following code to your readme.md

🚧 **my todoist stats:**
<!– TODO-IST:START –>
<!– TODO-IST:END –>

Secondly create a new workflow in your actions and name it update-todoist.yml

name: Todoist Readme

on:
workflow_dispatch:
schedule:
# Runs every minute
– cron: “* * * * *”

jobs:
update-readme:
name: Update this repo’s README
runs-on: ubuntu-latest
steps:
– uses: actions/checkout@v2
– uses: abhisheknaiidu/todoist-readme@master
with:
TODOIST_API_KEY: ${{ secrets.TODOIST_API_KEY }}
PREMIUM: “”

Then you should get the following results, if you don’t get the following results then consider comparing your code with mine My Profile

And Boom!

You have updated your profile README with your Todoist Stats

See you next time,

Bye