Skip to content

Commit 511410b

Browse files
committed
feat: wakatime workflow
1 parent 908c29b commit 511410b

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed

.github/workflows/readme-stats.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: WakaTime on Readme
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "30 1 * * *"
6+
jobs:
7+
update-readme:
8+
name: WakaReadme DevMetrics
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Update Readme with WakaTime Stats
12+
uses: athul/waka-readme@master
13+
with:
14+
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
15+
BLOCKS: ⣀⣄⣤⣦⣶⣷⣿
16+
TIME_RANGE: all_time
17+
SHOW_TIME: true
18+
SHOW_TOTAL: true
19+
SHOW_MASKED_TIME: true
20+
- name: Update WakaTime Stats
21+
run: |
22+
git config --local user.email "${{ secrets.GIT_EMAIL }}"
23+
git config --local user.name "${{ secrets.GIT_USERNAME }}"
24+
git add -A
25+
git diff-index --quiet HEAD || git commit -m "Updated README.md"

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,9 @@ My name is Pulkit. I'm a undergraduate from 🇮🇳 [![wakatime](https://wakati
125125

126126
---
127127

128-
<br/>
129-
130-
131-
[<img src="https://wakatime.com/share/@pulkitxm/b09efaa2-860c-4ed4-afbe-4a645828d6fe.svg" />](https://wakatime.com/@018b392d-3ab1-4608-aec5-c9d51a551252)
132-
<br/>
128+
<h3 align="left">🔥 My Stats</h3>
129+
<!--START_SECTION:waka-->
130+
<!--END_SECTION:waka-->
133131

134132
------------
135133

0 commit comments

Comments
 (0)