fix(ci): fall back to git diff for empty path lists [CI SKIP]

This commit is contained in:
justme committed 2026-10-05 10:25:59 -07:00
1 parent fa34869f18
commit 91485db500
1 file changed
+3 -1
+3 -1
View File
@@ -39,7 +39,9 @@ def read_changed_files() -> list[str]:
try:
value = json.loads(raw)
if isinstance(value, list):
return [str(path).replace("\\", "/") for path in value]
changed = [str(path).replace("\\", "/") for path in value]
if changed:
return changed
except json.JSONDecodeError:
return [path.strip().replace("\\", "/") for path in raw.split(",") if path.strip()]