commit.ts

This commit is contained in:
2026-01-25 13:01:47 +08:00
parent 0c3abb3aab
commit acaf5d4102

View File

@@ -1,9 +1,9 @@
#!/usr/bin/env runts -- --runtime-bun #!/usr/bin/env runts -- --runtime-bun
import { spawn } from "node:child_process"; import {spawn} from "node:child_process";
import { existsSync } from "node:fs"; import {existsSync} from "node:fs";
import { createInterface } from "node:readline/promises"; import {createInterface} from "node:readline/promises";
import { stdin, stdout } from "node:process"; import {stdin, stdout} from "node:process";
class ProcessOutput { class ProcessOutput {
code: number; code: number;
@@ -305,6 +305,8 @@ async function main() {
console.log("Git command: ", "git", gitCommitArgs); console.log("Git command: ", "git", gitCommitArgs);
await execCommandShell("git", gitCommitArgs); await execCommandShell("git", gitCommitArgs);
console.log("Git push");
await execCommandShell("git", ["push"]);
} }
main().catch((err) => { main().catch((err) => {