Update Profile README with Todoist Stats

Update Profile README with Todoist Stats

Hello All

Today we will be discussing how you can update your profile readme with your Todoist Stats:

First,

Go to your profile README file and Add in the following code:

### :construction: My Todoist Stats
<!– TODO-IST:START –>
<!– TODO-IST:END –>

Then,

Go to the actions tab and click on Set up your own workflow

Thirdly, Create a file in .github/workflows and call it todoist-stats.yml

Next,

Add the following code:

name: Todoist Readme

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

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

Then,

Login to Todoist and Click on Settings and then Click on Intergrations

Next,

Click on Developer

Then,

Click on Copy API

Next,

Create a Secret on your Profile

And add in the name as TODOIST_API_KEY

and Add the Secret as the ‘API Key’ from Todoist.

Then Go to actions and under Workflow Permissions, then Click on Read and write permissons

Then Run the workflow and You should get the following results,

If you don’t consider looking at my Github Profile My Profile

And There you go,

You have updated your Profile README with your Todoist Stats,

See You next time,

Bye