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:
|
try:
|
||||||
value = json.loads(raw)
|
value = json.loads(raw)
|
||||||
if isinstance(value, list):
|
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:
|
except json.JSONDecodeError:
|
||||||
return [path.strip().replace("\\", "/") for path in raw.split(",") if path.strip()]
|
return [path.strip().replace("\\", "/") for path in raw.split(",") if path.strip()]
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user