Skip to content

Commit 858eae4

Browse files
committed
chore(script): Improve script output
1 parent db8d32d commit 858eae4

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.scripts/update_helm_charts.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,17 @@
88

99

1010
def run_helm_repo_add(repo_name: str, repo_url: str) -> None:
11-
subprocess.run(
12-
["helm", "repo", "add", repo_name, repo_url, "--force-update"], check=True
11+
result = subprocess.run(
12+
["helm", "repo", "add", repo_name, repo_url, "--force-update"],
13+
capture_output=True,
14+
check=True,
1315
)
16+
if result.returncode == 0:
17+
print(f"✅ Added/Updated {repo_name} ({repo_url})")
18+
else:
19+
print(
20+
f"⚠️ There was a problem Adding/Updating {repo_name} ({repo_url}): {result.stderr}"
21+
)
1422

1523

1624
def local_repo_list():

0 commit comments

Comments
 (0)