Skip to content

Commit

Permalink
update strip TC prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
f-peverali committed May 3, 2024
1 parent 25bddba commit f528271
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/release_publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ def get_new_release_version_from_branch_name() -> str:


def modify_TC_branch_name_to_version(git_branch):
version = git_branch.lstrip('TC-')
version = git_branch.lstrip('TC_')
if git_branch.startswith('TC-'):
version = git_branch.lstrip('TC-')
elif git_branch.startswith('TC_'):
version = git_branch.lstrip('TC_')
return version

def create_files_to_update_list(config):
Expand Down

0 comments on commit f528271

Please sign in to comment.