From ff87b78ed39a1a5e3b38348285a870e6834a9498 Mon Sep 17 00:00:00 2001 From: Fabrizio Ferri Benedetti Date: Mon, 22 Sep 2025 12:16:36 +0200 Subject: [PATCH] Edit path in script --- scripts/update_kube_stack_version.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/update_kube_stack_version.py b/scripts/update_kube_stack_version.py index a177eef61b..b66e59e160 100755 --- a/scripts/update_kube_stack_version.py +++ b/scripts/update_kube_stack_version.py @@ -167,8 +167,12 @@ def prepare_git_changes(version, dry_run=False): return True try: + # Get the script directory and construct paths relative to it + script_dir = Path(__file__).parent + docset_path = script_dir.parent / 'docset.yml' + # Add and commit changes - subprocess.run(['git', 'add', 'docset.yml'], check=True) + subprocess.run(['git', 'add', str(docset_path)], check=True) subprocess.run(['git', 'commit', '-m', f'chore: update kube-stack version to {version} [skip ci]'], check=True) print(f"Git changes prepared for kube-stack version {version}")