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

This commit is contained in:
parent 8c2d3d0e4e
commit 1530a43a21
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C
2 changed files with 10 additions and 1 deletions

@ -1 +1 @@
Subproject commit 4cc85d9faecf474446e8a1e827c720db7dba0df1 Subproject commit de904b68515b2cc8814fcad266c1005ca0c19931

9
test.js Normal file

@ -0,0 +1,9 @@
let dry = '"auto-commit: $(date "+%A, %Y-%m-%d %I:%M:%S %p") [on 🌸]";'
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 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(sec.toString())
setTimeout(() => {
console.log(fir.stdout.toString())
}, 5000)