fix(ci): fall back to git diff for empty path lists [CI SKIP]
This commit is contained in:
1 parent
fa34869f18
commit
91485db500
1 file changed
+3
-1
+3
-1
@@ -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()]
|
||||
|
||||
|
||||
Reference in new issue
Block a user