Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
bar-chart-2

GitHub Action

WakaTime Stats Charts Generator

v0.2.1

WakaTime Stats Charts Generator

bar-chart-2

WakaTime Stats Charts Generator

Generates WakaTime Stats Charts to use in README.md

Installation

Copy and paste the following snippet into your .yml file.

              

- name: WakaTime Stats Charts Generator

uses: dvjn/wakatime-charts@v0.2.1

Learn more about this action in dvjn/wakatime-charts

Choose a version

wakatime-charts

GitHub Repo stars GitHub forks GitHub pull requests


Weekly Language Stats Weekly Project Stats

How to Use

Set it up in your repository

  1. Add your wakatime api key from here, in your repository secrets with the name WAKATIME_API_KEY.

  2. Optional: If you are adding this action to a repository other than your profile repository (<username>/<username>), add your Github API Token from here, in your repository secrets with the name GITHUB_TOKEN.

  3. Go to actions tab of your repository, click New workflow, and then click the link set up a workflow yourself.

  4. Replace all the file contents with the following:

    name: Wakatime Charts
    
    on:
      workflow_dispatch:
      schedule:
        - cron: "0 0 * * *"
    
    jobs:
      update-charts:
        name: Update wakatime stats charts
        runs-on: ubuntu-latest
        steps:
          - uses: divykj/wakatime-charts@master
            with:
              WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
              GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # only required if using the action in repository other than profile
  5. Commit this workflow file.

Other options

  • BRANCH_NAME: Set the branch on which charts are pushed
  • COMMIT_MESSAGE: Set the commit message for the changes
  • IMAGES_FOLDER: Set the folder name in which generated images are stored

Inspiration 😍