Fix generated docs drift detection output
This commit is contained in:
parent
7f6d90d2d4
commit
b8961a41d8
@ -17,6 +17,19 @@ const result = await writeConfigDocBaselineStatefile({
|
||||
check: checkOnly,
|
||||
});
|
||||
|
||||
if (!checkOnly && result.changed) {
|
||||
const { execFileSync } = await import("node:child_process");
|
||||
const status = execFileSync(
|
||||
"git",
|
||||
["-C", repoRoot, "status", "--porcelain", "--untracked-files=normal", "--", "docs/.generated"],
|
||||
{ encoding: "utf8" },
|
||||
);
|
||||
if (status.trim()) {
|
||||
console.log(`Generated docs drift paths:
|
||||
${status.trimEnd()}`);
|
||||
}
|
||||
}
|
||||
|
||||
if (checkOnly) {
|
||||
if (!result.changed) {
|
||||
console.log(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user