Files
Github-Ranking/auto_run.sh
T
2020-05-09 07:08:31 +00:00

16 lines
441 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 save_most_stars_forks.py
git add .
today=`date +"%Y-%m-%d"`
git commit -m "Auto update $today."
git push origin master