commit.ts
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user