chore(metrics): update new workflows for updating metrics
This commit is contained in:
parent
64dd932147
commit
2cf033200c
25
.github/workflows/waka-readme.yml
vendored
25
.github/workflows/waka-readme.yml
vendored
@ -1,25 +0,0 @@
|
|||||||
name: Update weekly wakatime metrics to README section
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch: # for manual workflow trigger
|
|
||||||
push: # instant trigger after push to see effect
|
|
||||||
schedule:
|
|
||||||
- cron: "0 0 * * *" # runs at every 12AM UTC
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update-readme:
|
|
||||||
name: WakaReadme DevMetrics
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: athul/waka-readme@master
|
|
||||||
with:
|
|
||||||
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
|
|
||||||
# SHOW_TITLE: true
|
|
||||||
BLOCKS: ░▒▓█
|
|
||||||
TIME_RANGE: all_time
|
|
||||||
SECTION_NAME: wakabox-lang
|
|
||||||
# SHOW_TIME: true
|
|
||||||
# following flags are required, only if this is not on
|
|
||||||
# profile readme, remove the leading `#` to use them
|
|
||||||
#GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
||||||
#REPOSITORY: <gh_username/gh_username>
|
|
||||||
25
.github/workflows/waka.yml
vendored
Normal file
25
.github/workflows/waka.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
name: Update wakatime metrics to README section
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 */12 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
jobs:
|
||||||
|
update-readme:
|
||||||
|
name: Update Readme with Metrics
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: anmol098/waka-readme-stats@master
|
||||||
|
with:
|
||||||
|
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
|
||||||
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
|
SHOW_LOC_CHART: false
|
||||||
|
SHOW_SHORT_INFO: false
|
||||||
|
SHOW_TIMEZONE: false
|
||||||
|
COMMIT_BY_ME: true
|
||||||
|
COMMIT_MESSAGE: "chore(metrics): update latest development metrics to readme"
|
||||||
|
COMMIT_USERNAME: "@andatoshiki"
|
||||||
|
COMMIT_EMAIL: "101481353+andatoshiki@users.noreply.github.com"
|
||||||
|
SHOW_LINES_OF_CODE: true
|
||||||
|
SHOW_TOTAL_CODE_TIME: true
|
||||||
11
README.md
11
README.md
@ -22,15 +22,8 @@ dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
|
|||||||
|
|
||||||
📊 Wakatime weekly development breakdown
|
📊 Wakatime weekly development breakdown
|
||||||
|
|
||||||
<!--START_SECTION:wakabox-lang-->
|
<!--START_SECTION:waka-->
|
||||||
|
<!--END_SECTION:waka-->
|
||||||
```text
|
|
||||||
YAML 6 hrs 10 mins █████████░░░░░░░░░░░░░░░░ 35.98 %
|
|
||||||
NSIS 2 hrs 53 mins ████▒░░░░░░░░░░░░░░░░░░░░ 16.88 %
|
|
||||||
Other 1 hr 28 mins ██░░░░░░░░░░░░░░░░░░░░░░░ 08.60 %
|
|
||||||
```
|
|
||||||
|
|
||||||
<!--END_SECTION:wakabox-lang-->
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
andatoshiki/andatoshiki is a ✨ special ✨ repository because its `README.md` (this file) appears on your GitHub profile.
|
andatoshiki/andatoshiki is a ✨ special ✨ repository because its `README.md` (this file) appears on your GitHub profile.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user