From 671b705b39590df3932ed18c1708e21ea5d44634 Mon Sep 17 00:00:00 2001 From: Jonathan Branan Date: Tue, 27 Oct 2026 01:38:39 -0500 Subject: [PATCH] chore: fix yaml indent --- .gitea/workflows/komodo-setup.yml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/komodo-setup.yml b/.gitea/workflows/komodo-setup.yml index 14e99c1..13ecf76 100644 --- a/.gitea/workflows/komodo-setup.yml +++ b/.gitea/workflows/komodo-setup.yml @@ -28,15 +28,19 @@ jobs: echo "=== GetRepo 6ac99726aff03b84cf6d39d7 ===" api /read/GetRepo '{"repo":"6ac99726aff03b84cf6d39d7"}' | python3 -m json.tool echo "=== ListStacks (summary) ===" - api /read/ListStacks '{}' | python3 -c ' -import json,sys -for s in json.load(sys.stdin): - c = s.get("config", {}) - print(s["name"], "| server:", c.get("server_id"), "| repo:", c.get("linked_repo"), "| branch:", c.get("branch"), "| rundir:", c.get("run_directory"), "| files_on_host:", c.get("files_on_host"), "| file_paths:", c.get("file_paths")) -' + api /read/ListStacks '{}' > /tmp/stacks.json + python3 - <<'PY' + import json + for s in json.load(open("/tmp/stacks.json")): + c = s.get("config", {}) + print(s["name"], "| server:", c.get("server_id"), "| repo:", c.get("linked_repo"), + "| branch:", c.get("branch"), "| rundir:", c.get("run_directory"), + "| files_on_host:", c.get("files_on_host"), "| file_paths:", c.get("file_paths")) + PY echo "=== ListRepos ===" - api /read/ListRepos '{}' | python3 -c ' -import json,sys -for r in json.load(sys.stdin): - print(r["id"], r["name"], r.get("info",{}).get("repo") or r.get("config",{}).get("repo"), r.get("config",{}).get("path")) -' + api /read/ListRepos '{}' > /tmp/repos.json + python3 - <<'PY' + import json + for r in json.load(open("/tmp/repos.json")): + print(r["id"], r["name"], r.get("config", {}).get("repo"), r.get("config", {}).get("path")) + PY