mirror of https://github.com/openclaw/openclaw.git
fix(ci): avoid shell interpolation in changed-scope git diff
This commit is contained in:
parent
02d26ced98
commit
f175a5d6d3
|
|
@ -1,4 +1,4 @@
|
||||||
import { execSync } from "node:child_process";
|
import { execFileSync } from "node:child_process";
|
||||||
import { appendFileSync } from "node:fs";
|
import { appendFileSync } from "node:fs";
|
||||||
|
|
||||||
/** @typedef {{ runNode: boolean; runMacos: boolean; runAndroid: boolean; runWindows: boolean }} ChangedScope */
|
/** @typedef {{ runNode: boolean; runMacos: boolean; runAndroid: boolean; runWindows: boolean }} ChangedScope */
|
||||||
|
|
@ -80,7 +80,7 @@ export function listChangedPaths(base, head = "HEAD") {
|
||||||
if (!base) {
|
if (!base) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
const output = execSync(`git diff --name-only ${base} ${head}`, {
|
const output = execFileSync("git", ["diff", "--name-only", base, head], {
|
||||||
stdio: ["ignore", "pipe", "pipe"],
|
stdio: ["ignore", "pipe", "pipe"],
|
||||||
encoding: "utf8",
|
encoding: "utf8",
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue