Docker images / prepare-release (push) Successful in 5s
Docker images / backend-image (push) Successful in 2m36s
Docker images / frontend-image (push) Successful in 2m25s
Docker images / updater-image (push) Successful in 37s
Docker images / notify-webhook (push) Has been skipped
Docker images / publish-release (push) Successful in 6s
22 lines
546 B
JavaScript
22 lines
546 B
JavaScript
#!/usr/bin/env node
|
|
import { execFileSync, spawnSync } from "node:child_process"
|
|
import path from "node:path"
|
|
import { fileURLToPath } from "node:url"
|
|
|
|
const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..", "..")
|
|
const gitCheck = spawnSync("git", ["rev-parse", "--show-toplevel"], {
|
|
cwd: repoRoot,
|
|
encoding: "utf8",
|
|
})
|
|
|
|
if (gitCheck.status !== 0) {
|
|
process.exit(0)
|
|
}
|
|
|
|
const topLevel = gitCheck.stdout.trim()
|
|
|
|
execFileSync("git", ["config", "core.hooksPath", ".githooks"], {
|
|
cwd: topLevel,
|
|
stdio: "ignore",
|
|
})
|