From 43901b8b575044035a9b20d2f543f259728d98ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?youngchief=20btw=20=E3=83=84?= Date: Wed, 23 Nov 2022 14:09:16 -0800 Subject: [PATCH] Wakatime update + Blog. --- .github/workflows/blog.yml | 2 +- .github/workflows/wakatime.yml | 15 +++++++++++++++ README.md | 3 ++- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/wakatime.yml diff --git a/.github/workflows/blog.yml b/.github/workflows/blog.yml index 0823f09..c5fda35 100644 --- a/.github/workflows/blog.yml +++ b/.github/workflows/blog.yml @@ -1,4 +1,4 @@ -name: Update blog posts section. +name: Blog on: schedule: diff --git a/.github/workflows/wakatime.yml b/.github/workflows/wakatime.yml new file mode 100644 index 0000000..2a6e8ed --- /dev/null +++ b/.github/workflows/wakatime.yml @@ -0,0 +1,15 @@ +name: Wakatime + +on: + workflow_dispatch: # for manual workflow trigger + schedule: + - cron: '0 8 * * *' # runs at every 12AM UTC + +jobs: + update-readme: + name: Wakatime + runs-on: ubuntu-latest + steps: + - uses: athul/waka-readme@master + with: + WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }} \ No newline at end of file diff --git a/README.md b/README.md index f54c351..9cb920c 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,8 @@ My website: https://ycws.vercel.app ![YoungChief's Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=youngchief-btw&langs_count=10&count_private=true&show_icons=true&theme=tokyonight&layout=compact) -![YoungChief's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=youngchief&show_icons=true&theme=tokyonight&layout=compact) + + ---