Skip to content

Commit

Permalink
Correctly retrieve train name for commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicaj committed Feb 2, 2021
1 parent 6508c73 commit 9180c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update_dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def update_train_charts(train_path, commit):
if any(ITEMS[item]['error'] for item in ITEMS):
print(f'[\033[91mFAILED\x1B[0m]\tNot committing changes as failures detected')
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'
for item in ITEMS:
commit_msg += f'Updated {item} ({", ".join(ITEMS[item]["success"])} versions)\n\n'
Expand Down

0 comments on commit 9180c72

Please sign in to comment.