Skip to content

Commit bb1440d

Browse files
authored
Edit path in script (#3073)
Script couldn't find docset.yml
1 parent 5c15191 commit bb1440d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/update_kube_stack_version.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,12 @@ def prepare_git_changes(version, dry_run=False):
167167
return True
168168

169169
try:
170+
# Get the script directory and construct paths relative to it
171+
script_dir = Path(__file__).parent
172+
docset_path = script_dir.parent / 'docset.yml'
173+
170174
# Add and commit changes
171-
subprocess.run(['git', 'add', 'docset.yml'], check=True)
175+
subprocess.run(['git', 'add', str(docset_path)], check=True)
172176
subprocess.run(['git', 'commit', '-m', f'chore: update kube-stack version to {version} [skip ci]'], check=True)
173177

174178
print(f"Git changes prepared for kube-stack version {version}")

0 commit comments

Comments
 (0)