-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (29 loc) · 1.02 KB
/
wakaTime.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Coding
on:
schedule:
- cron: '0 23 * * 1-5'
jobs:
scrobbler:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: init proccess
run: |
$Year = Get-Date -UFormat %Y
$Month = Get-Date -UFormat %m
if (!(Test-Path -Path wakatime\\$Year)) {
New-Item -Path wakatime\$Year -ItemType Directory
}
if (!(Test-Path -Path wakatime\\${Year}\\${Month})) {
New-Item -Path wakatime\$Year\$Month -ItemType Directory
}
pip install requests
python wakatime\script.py --path "wakatime/$Year/$Month" -t ${{ secrets.TOKEN_WAKATIME }}
git add "wakatime/$Year/$Month"
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.TOKEN }}
author_name: EdgarVaguencia
author_email: ${{ secrets.EMAIL }}
message: 'Dandole atomos :metal:'