mirror of
https://github.com/EvanLi/Github-Ranking.git
synced 2026-11-04 14:05:05 +00:00
17 lines
434 B
Bash
17 lines
434 B
Bash
#!/bin/sh
|
|
# crontab auto run this file
|
|
# crontab command:
|
|
# 0 12 * * * nohup sh /home/li/code/github/Github-Ranking/auto_run.sh >> /home/li/tmp/Github-Ranking.log 2>&1 &
|
|
|
|
# show run time
|
|
echo -e "\n----------Run Time:----------"
|
|
date
|
|
cd /home/li/code/github/Github-Ranking
|
|
git pull
|
|
source /home/li/tf36/bin/activate
|
|
python source/process.py
|
|
git add .
|
|
today=`date +"%Y-%m-%d"`
|
|
git commit -m "auto update $today"
|
|
git push origin master
|