generated from navdeep-G/samplemod
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 964 Bytes
/
scheduler.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
35
36
37
38
39
40
41
42
name: LeetCode Rank Tracking Job Scheduler
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install requests pandas matplotlib pytz
- name: run job
run: |
python3 -m tracker --username egg528
- name: commit changes
run: |
git config --global user.name 'leetcode-rank-tracker'
git config --global user.email 'leetcode-rank-tracker@gmail.com'
git add -u
git add *
if git diff --cached --quiet; then
echo "No changes to commit"
else
git commit -m "docs: update leetcode rank"
fi
- name: Push changes
run: |
git push origin main