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

12 lines
293 B
Bash

#!/bin/sh
# crontab auto run this file
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