This tool generates an activity.svg containing the last 52 weeks of activity from:
- Github
- Wakatime
- Leetcode
Create .github/workflows/activity.yml in the repository where you want activity.svg:
name: Update Activity
on:
workflow_dispatch:
schedule:
- cron: "0 2 * * *"
permissions:
contents: write
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 11
- name: Generate activity SVG
uses: MoDevIO/github-wakatime-activity@main
with:
github-token: ${{ secrets.GH_TOKEN }}
wakatime-token: ${{ secrets.WAKATIME_TOKEN }}
leetcode-username: ${{ secrets.LEETCODE_USERNAME }}
This tool additionally needs your Wakatime API-Key and Leetcode username:
- Open the repository on GitHub.
- Go to Settings.
- Open
Secrets and variables → Actions. - Click
New repository secret. - Add these secrets:
WAKATIME_TOKEN LEETCODE_USERNAME GH_TOKEN