Skip to content

Commit 6616080

Browse files
committed
fix(script): Ignore bumping templated versions
1 parent 38ddf5c commit 6616080

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.scripts/update_helm_charts.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
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
13-
)
11+
subprocess.run(
12+
["helm", "repo", "add", repo_name, repo_url, "--force-update"], check=True
13+
)
1414

1515

1616
def local_repo_list():
@@ -78,6 +78,10 @@ def process_yaml_files(top_dir: str) -> None:
7878
if not repo_name or not repo_url:
7979
continue
8080

81+
chart_version = first_doc["version"]
82+
if chart_version.startswith("{{"):
83+
continue
84+
8185
local_repo = next(
8286
(repo for repo in local_repos if repo["name"] == repo_name), None
8387
)

0 commit comments

Comments
 (0)