Adding WakaTime stats to your Github README
First I referred to this tutorial. Of particular note is the integration of my local IDE to my Wakatime account. For example I use the Zed editor. So I typed Zed in my Waka dashboard which led me to this project page. It says to ensure that the .wakatime.cfg is created in the very Home (~) directory of your machine. Upon restarting your IDE, you'll see your stats in your Wakatime dashboard. In the /.github/workflows/waka.yml file I created, I added the following code: name: Update WakaTime Stats on: schedule: - cron: '0 0 * * *' # Runs daily at midnight UTC workflow_dispatch: # Allows you to manually trigger the workflow jobs: update-readme: runs-on: ubuntu-latest steps: - name: Checkout Repository uses: actions/checkout@v3 - name: Update WakaTime Stats in README uses: athul/waka-readme@master with: WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }} Note that I added a "Checkout Repository" step as well so that it captures my activity on Github also, not just on my IDE. Also note that I used the popular Github action of Athul here. Anmol's Github action can also be used here. Once you run this Github action, your README starts getting populated with stats. Follow me on my X Profile

First I referred to this tutorial.
Of particular note is the integration of my local IDE to my Wakatime account. For example I use the Zed editor. So I typed Zed in my Waka dashboard which led me to this project page. It says to ensure that the .wakatime.cfg is created in the very Home (~) directory of your machine. Upon restarting your IDE, you'll see your stats in your Wakatime dashboard.
In the /.github/workflows/waka.yml
file I created, I added the following code:
name: Update WakaTime Stats
on:
schedule:
- cron: '0 0 * * *' # Runs daily at midnight UTC
workflow_dispatch: # Allows you to manually trigger the workflow
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Update WakaTime Stats in README
uses: athul/waka-readme@master
with:
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
Note that I added a "Checkout Repository" step as well so that it captures my activity on Github also, not just on my IDE.
Also note that I used the popular Github action of Athul here. Anmol's Github action can also be used here.
Once you run this Github action, your README starts getting populated with stats.
Follow me on my X Profile