Commit 9180c723 authored by Waqar Ahmed's avatar Waqar Ahmed

Correctly retrieve train name for commit message

parent 6508c738
...@@ -69,7 +69,7 @@ def update_train_charts(train_path, commit): ...@@ -69,7 +69,7 @@ def update_train_charts(train_path, commit):
if any(ITEMS[item]['error'] for item in ITEMS): if any(ITEMS[item]['error'] for item in ITEMS):
print(f'[\033[91mFAILED\x1B[0m]\tNot committing changes as failures detected') print(f'[\033[91mFAILED\x1B[0m]\tNot committing changes as failures detected')
else: else:
commit_msg = f'Updated catalog item dependencies ({train_path.rsplit("/", 1)[0]} train)\n' \ commit_msg = f'Updated catalog item dependencies ({train_path.rsplit("/", 1)[-1]} train)\n' \
'Following items were updated:\n' 'Following items were updated:\n'
for item in ITEMS: for item in ITEMS:
commit_msg += f'Updated {item} ({", ".join(ITEMS[item]["success"])} versions)\n\n' commit_msg += f'Updated {item} ({", ".join(ITEMS[item]["success"])} versions)\n\n'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment