From 2cf033200c1baac2194dc0a86fa8f56a33ca90d9 Mon Sep 17 00:00:00 2001 From: andatoshiki Date: Sun, 4 Dec 2022 18:09:12 +0800 Subject: [PATCH] chore(metrics): update new workflows for updating metrics --- .github/workflows/waka-readme.yml | 25 ------------------------- .github/workflows/waka.yml | 25 +++++++++++++++++++++++++ README.md | 11 ++--------- 3 files changed, 27 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/waka-readme.yml create mode 100644 .github/workflows/waka.yml diff --git a/.github/workflows/waka-readme.yml b/.github/workflows/waka-readme.yml deleted file mode 100644 index 874c9b5..0000000 --- a/.github/workflows/waka-readme.yml +++ /dev/null @@ -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: \ No newline at end of file diff --git a/.github/workflows/waka.yml b/.github/workflows/waka.yml new file mode 100644 index 0000000..db0c2d0 --- /dev/null +++ b/.github/workflows/waka.yml @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index 48a925e..e7a5a38 100644 --- a/README.md +++ b/README.md @@ -22,15 +22,8 @@ dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd 📊 Wakatime weekly development breakdown - - -```text -YAML 6 hrs 10 mins █████████░░░░░░░░░░░░░░░░ 35.98 % -NSIS 2 hrs 53 mins ████▒░░░░░░░░░░░░░░░░░░░░ 16.88 % -Other 1 hr 28 mins ██░░░░░░░░░░░░░░░░░░░░░░░ 08.60 % -``` - - + +