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