Skip to content

WakaTime on Readme

WakaTime on Readme #6

Workflow file for this run

name: WakaTime on Readme
on:
workflow_dispatch:
schedule:
- cron: "30 1 * * *"
jobs:
update-readme:
name: WakaReadme DevMetrics
runs-on: ubuntu-latest
steps:
- name: Update Readme with WakaTime Stats
uses: athul/waka-readme@master
with:
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
BLOCKS: ⣀⣄⣤⣦⣶⣷⣿
TIME_RANGE: all_time
SHOW_TIME: true
SHOW_TOTAL: true
SHOW_MASKED_TIME: true
- uses: actions/checkout@v4
- name: Update Workflow Stats
run: |
cd scripts && npm install && ACCESS_TOKEN=${{ secrets.ACCESS_TOKEN }} npm run update:workflow
- name: Commit changes
run: |
git config --local user.email "${{ secrets.GIT_EMAIL }}"
git config --local user.name "${{ secrets.GIT_USERNAME }}"
git add -A
git diff-index --quiet HEAD || git commit -m "Updated README.md"
- name: Pull changes
run: git pull -r
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}