Skip to content

Instantly share code, notes, and snippets.

@xrkffgg
Last active March 7, 2024 12:20
Show Gist options
  • Save xrkffgg/0aaab601c28637c74d5f281055e4e8ec to your computer and use it in GitHub Desktop.
Save xrkffgg/0aaab601c28637c74d5f281055e4e8ec to your computer and use it in GitHub Desktop.
πŸ“Š Weekly development breakdown
TypeScript 6 hrs 42 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–“ 83.9%
Markdown 1 hr 1 min β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 12.8%
Bash 8 mins β–ˆβ–ˆβ–ˆβ–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 1.9%
JSON 2 mins β–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0.5%
@soulsam480
Copy link

What's the file type for the gist ?

@iTonyYo
Copy link

iTonyYo commented Jun 3, 2021

What's the file type for the gist ?

plain text

@iTonyYo
Copy link

iTonyYo commented Jun 3, 2021

If it fails to be implemented according to matchai/waka-box README.md, it can be implemented according to the following operations.

  • Defined scheduled task frequency in matchai/waka-box: once every day at 0: 00. So don't expect to see the final effect after pushing the code;
  • Modify the schedule.yml configuration in the project after fork
name: Update gist with WakaTime stats
on: 
  schedule:    
    - cron: "0 0 * * *"
jobs:  
  update-gist: 
    runs-on: ubuntu-latest
    steps: 
      - uses: actions/checkout@master      
      - name: Update gist        
-       uses: matchai/waka-box@master 
+       run: node ./dist/index.js
        env:           
           GH_TOKEN: ${{ secrets.GH_TOKEN }} 
           GIST_ID: 968220c97e8da1d047a9a480fa432e54 
           WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
  • If necessary, you can adjust the frequency of scheduled tasks, for example, once every two hours. This operation is not necessary, the minimum frequency is: every 5 minutes;
name: Update gist with WakaTime stats
on: 
  schedule:    
- - cron: "0 0 * * *"
+ - cron: "0 */2 * * *"
jobs:  
  update-gist: 
    runs-on: ubuntu-latest
    steps: 
      - uses: actions/checkout@master      
      - name: Update gist        
           run: node ./dist/index.js
        env:           
           GH_TOKEN: ${{ secrets.GH_TOKEN }} 
           GIST_ID: 968220c97e8da1d047a9a480fa432e54 
           WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}

When you finish these, there will be no problem, and you will see the effect in time.

@xrkffgg
Copy link
Author

xrkffgg commented Jul 15, 2021

@iTonyYo THX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment