update:2024-07-06 9:50:52 AutoCommit

This commit is contained in:
539943419 committed 2024-07-06 09:50:52 +08:00
1 parent 0a56f8b5d5
commit 222b0ac434
7 files changed
+201 -6

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import shell from 'shelljs'
const generateDate = function(){
const dateNow = new Date()
let year = dateNow.getFullYear();
let month = ("0" + (dateNow.getMonth() + 1)).slice(-2);
let day = ("0" + dateNow.getDate()).slice(-2);
let hour = dateNow.getHours();
let minute = dateNow.getMinutes();
let seconds = dateNow.getSeconds();
return `${year}-${month}-${day} ${hour}:${minute}:${seconds}`
}
// console.log(generateDate())
shell.exec('git add .')
shell.exec(`git commit -m "update:${generateDate()} AutoCommit"`)
shell.exec('git push')