add update-meta

This commit is contained in:
2026-01-25 13:50:47 +08:00
parent a42633f3b7
commit 83c4ea0d0d
3 changed files with 17 additions and 6 deletions

View File

@@ -308,7 +308,15 @@ async function main() {
gitCommitArgs.push("-m");
gitCommitArgs.push(message);
console.log(">>>>>", "Git command: ", ["git", gitCommitArgs]);
if (gitStatus.untracked.length > 0) {
const gitAddArgs = ["add"];
for (const file of gitStatus.untracked) {
gitAddArgs.push(file);
}
console.log(">>>>>", ["git", gitAddArgs]);
await execCommandShell("git", gitAddArgs);
}
console.log(">>>>>", ["git", gitCommitArgs]);
await execCommandShell("git", gitCommitArgs);
console.log(">>>>>", ["git", "push"]);
await new ProcessBar("Git pushing").call(async (): Promise<void> => {
@@ -321,5 +329,5 @@ main().catch((err) => {
process.exit(0);
}).then(() => process.exit(0));
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260125T132351+08:00.MEQCIGM/e3lHXhvDoj2w1HUz
// b3VNQZ5UcV3rYo2eVhGbeclhAiBYWQ70AqGUUS80RKR4Umqr+D4NSSKHIhujwGngWBbKqw==
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260125T135031+08:00.MEUCIBEze5RIPyQ19vGFgOur
// 3UX23ghubli25a0lskk1ezgKAiEAzNzsLCWJ9DNRUbIrA9nbmO15V5qlQY46AeCal6ywS/w=