auto-commit: Sunday, 2023-05-28 10:23:41 PM [on 🌸]

This commit is contained in:
parent d8cbd3001b
commit 85086917e4
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -1,6 +1,6 @@
let dry = '"auto-commit: $(date "+%A, %Y-%m-%d %I:%M:%S %p") [on 🌸]";' let dry = '"auto-commit: $(date "+%A, %Y-%m-%d %I:%M:%S %p") [on 🌸]"'
const cp = require("child_process"); const cp = require("child_process");
const fir = cp.spawnSync('pwsh', ['-Command', 'cd', `"C:\\Users\\Corinthe\\@@site\\content";`, 'git', 'add', '.', ';', 'git', 'commit', '-am', dry, ';', 'git', 'push', ';', 'cd', '..', ';', 'git', 'add', '.', ';', 'git', 'commit', '-am', dry, ';', 'git', 'push']) const fir = cp.spawnSync('pwsh', ['-Command', 'cd', `"C:\\Users\\Corinthe\\@@site";`, 'git', 'add', '.', ';', 'git', 'commit', '-am', dry, ';', 'sleep', '3', ';', 'git', 'push', 'origin', 'main:main', ';', 'cd', '..', ';', 'git', 'add', '.', ';', 'git', 'commit', '-am', dry, ';', 'sleep', '3', ';', 'git', 'push', 'origin', 'main:main'])
const sec = cp.execSync(`ssh.exe tablet@tablet.sh "echo 'SnowPea' | sudo -u git -S bash -c 'git --git-dir=/home/git/tablet/amethyst.git --work-tree=/var/www/tablet.sh checkout -f main; git --git-dir=/home/git/tablet/amethyst.git --work-tree=/var/www/tablet.sh checkout -f deploy;'"`) const sec = cp.execSync(`ssh.exe tablet@tablet.sh "echo 'SnowPea' | sudo -u git -S bash -c 'git --git-dir=/home/git/tablet/amethyst.git --work-tree=/var/www/tablet.sh checkout -f main; git --git-dir=/home/git/tablet/amethyst.git --work-tree=/var/www/tablet.sh checkout -f deploy;'"`)
console.log(fir.stdout.toString()) console.log(fir.stdout.toString())
console.log(sec.toString()) console.log(sec.toString())