From d6b919bc422f0ba77e6fc366f8e47b6fcae8a63d Mon Sep 17 00:00:00 2001 From: JustMe Date: Mon, 5 Oct 2026 17:27:35 +0000 Subject: [PATCH] fix(ci): handle empty changed-file lists Use a Git diff fallback when Woodpecker provides no changed-file list. Co-authored-by: JustMe --- ci/main-fastlane.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/main-fastlane.py b/ci/main-fastlane.py index 295b305..0fe6fdb 100644 --- a/ci/main-fastlane.py +++ b/ci/main-fastlane.py @@ -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()]