You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
379 B

const cron = require('node-schedule');
const git = require('simple-git')();
/*
cron.scheduleJob('1-50 * * * * *', function(){
console.log('scheduleCronstyle:' + new Date());
});
*/
git.pull('origin', 'master', {'--no-rebase': null});
git.add('./*')
.commit("Committed by cron-git auto")
.push(['-u', 'origin', 'master'], (s) => console.log(s+'git push done!!'));