Committed by cron-git auto

master
iotcat 4 years ago
parent ac909fe936
commit d1d63a9cda
  1. 4
      index.js

@ -10,9 +10,9 @@ const git = require('simple-git')();
*/
git.pull('origin', 'master', {'--no-rebase': null}, ()=>{console.log(new Date() + ' - cron-git: git pull done.')});
git.pull('origin', 'master', {'--no-rebase': null}, ()=>{console.log(new Date() + ' - cron-git: git pull done.' + require('os').hostname())});
git.add('./*')
.commit("Committed by cron-git auto")
.push(['-u', 'origin', 'master'], () => console.log(new Date() + ' - cron-git: git pull done.'));
.push(['-u', 'origin', 'master'], () => console.log(new Date() + ' - cron-git: git push done.'));
Loading…
Cancel
Save