Update a pinned gist to contain your weekly WakaTime stats
Important
This action is a fork of https://github.com/matchai/waka-box, using bun in place of nodejs.
Named waka-box-fast
because it's easier to use than the original waka-box
action.
I removed redundant dependencies and updated the usage to be more straightforward.
📌✨ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists
- Create a new public GitHub Gist (https://gist.github.com/).
- Create a token with the
gist
scope and copy it (https://github.com/settings/tokens/new). - (Optional) Create a WakaTime account (https://wakatime.com/signup).
- In your WakaTime profile settings (https://wakatime.com/settings/profile), ensure
Display languages, editors, os, categories publicly
is checked. - In your account settings, copy the existing WakaTime API Key (https://wakatime.com/settings/api-key).
You will use the master branch of this repo, which is the latest version of this action.
-
Fork this repo.
-
Go to the repo Settings > Secrets and variables > Actions > Repository secrets.
-
Add the following secrets:
-
GIST_ID
The ID portion from your gist url:
https://gist.github.com/g1eny0ung/
a69405549d813107fd0bba15815cbaa6
. -
GH_TOKEN
The GitHub token generated above.
-
WAKATIME_API_KEY
The API key for your WakaTime account.
-
WAKATIME_BASE_URL
(Optional)Use
https://wakatime.com/api/v1
by default. If you are using a WakaTime-compatible backend (e.g. Wakapi), change this to the corresponding base URL.
-
-
Create a new workflow in your repo
.github/workflows/waka-box-fast.yml
. -
Add the following code to the workflow:
name: Update gist with WakaTime stats on: # You can change the cron schedule here based on your needs. This will run daily at midnight. schedule: - cron: '0 0 * * *' # Manual triggers with workflow_dispatch workflow_dispatch: jobs: update-gist: runs-on: ubuntu-latest steps: - name: Update gist uses: g1eny0ung/waka-box@v6 # with: # gist-name: Weekly Wakatime Stats env: GIST_ID: ${{ secrets.GIST_ID }} GH_TOKEN: ${{ secrets.GH_TOKEN }} WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }} # WAKATIME_BASE_URL: ${{ secrets.WAKATIME_BASE_URL }}
-
Add related secrets described above.
Name | Description | Default | Required | Example |
---|---|---|---|---|
gist-name |
The name of the gist. | 📊 Weekly development breakdown |
false |
Weekly Wakatime Stats |
This action was originally created by matchai.