fix(build): skip versioned json git scan outside worktree
Some checks are pending
sf self-deploy / build, test, and publish server image (push) Waiting to run
sf self-deploy / upgrade vega source server (push) Blocked by required conditions
sf self-deploy / deploy test and probe (push) Blocked by required conditions
sf self-deploy / promote prod (push) Blocked by required conditions

This commit is contained in:
Mikael Hugo 2026-05-17 23:21:45 +02:00
parent 565cd1069a
commit 7889cfe074

View file

@ -19,6 +19,7 @@ const CONTRACT_EXACT_PATHS = new Set([
const CONTRACT_PREFIXES = ["src/resources/extensions/sf/learning/data/"];
function trackedJsonFiles() {
if (!existsSync(".git")) return [];
try {
const out = execFileSync("git", ["ls-files", "*.json"], {
encoding: "utf8",