WakaTime on Readme #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: WakaTime on Readme | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "30 1 * * *" | |
| jobs: | |
| update-readme: | |
| name: WakaReadme DevMetrics | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - 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 | |
| - name: Update Workflow Stats | |
| run: | | |
| cd scripts && npm install && ACCESS_TOKEN=${{ secrets.ACCESS_TOKEN }} npm run update:workflow | |
| - name: Configure Git | |
| run: | | |
| git config --local user.email "${{ secrets.GIT_EMAIL }}" | |
| git config --local user.name "${{ secrets.GIT_USERNAME }}" | |
| - name: Commit and Push changes | |
| run: | | |
| git add -A | |
| git diff-index --quiet HEAD || (git commit -m "docs: update README stats [skip ci]" && git push) | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |