Skip to content

Go GitHub Action that adds Coding time statistics to your GitHub profile

Notifications You must be signed in to change notification settings

NickRTR/WakaTime-Readme

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WakaTime-Readme

Go GitHub Action that adds Coding time statistics to your README

Last 7 Days

PHP 2 hrs 53 mins 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬜⬜⬜⬜⬜⬜⬜⬜⬜ 66.79 %
Vue.js 1 hr 24 mins 🟨🟨🟨🟨🟨🟨🟨🟨⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜ 32.48 %
JSON 1 min ⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜ 0.66 %
JavaScript 0 secs ⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜ 0.07 %

All Time

Total Time Coded: 973 hrs 20 mins
Timespan: 832 days
Daily average: 1 hr(s) 9 min(s)

Documentation

  1. Update the markdown file with 2 comments: <!--WakaTime-Start--> and <!--WakaTime-End-->
  2. Get your WakaTime API Key (https://wakatime.com/settings/account)
  3. Generate a GitHub API Token with repo and user scope (https://github.com/settings/tokens)
  4. Store the WakaTime API Key and GitHub access token in your repository's action secrets as following:
    • WakaTime API Key: WAKATIME_API_KEY=<your key>
    • GitHub Token: GH_TOKEN=<your GitHub access token>
  5. Create a new GitHub Action in the Repository, you want the Readme stats in:
name: WakaTime Readme

on:
    schedule:
        - cron: "0 1 * * *"
    workflow_dispatch:

env:
    WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
    GH_TOKEN: ${{ secrets.GH_TOKEN  }}
    THEME: "default"

jobs:
    WakaTime-README:
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v3
            - uses: NickRTR/WakaTime-Readme@main
  1. Wait for the action to run automatically every night or run it manually for testing purposes.
  2. Let the magic happen 🚀

Themes

There are a number of different themes, you can choose from.

Theme env variable
░█ default
------ --------------
⬜🟩 block-green
⬜🟨 block-yellow
⬜🟥 block-red
⬜🟪 block-purple
⬜🟧 block-orange
⬜🟦 block-blue
⬜⬛ block-black
------ --------------
⚪🟢 circle-green
⚪🟡 circle-yellow
⚪🔴 circle-red
⚪🟣 circle-purple
⚪🟠 circle-orange
⚪🔵 circle-blue
⚪⚫ circle-black

Specify a theme by adding THEME: <theme> to the env variables of your workflow yaml file.

If no theme is specified, the default is selected.

About

Go GitHub Action that adds Coding time statistics to your GitHub profile

Resources

Stars

Watchers

Forks