From f528271fa3bf0388221d5d1664b451431ea7cc32 Mon Sep 17 00:00:00 2001 From: f-peverali <112709306+f-peverali@users.noreply.github.com> Date: Fri, 3 May 2024 11:13:17 +0200 Subject: [PATCH] update strip TC prefix --- scripts/release_publish.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/release_publish.py b/scripts/release_publish.py index 9aabc9dd..cf93aa75 100644 --- a/scripts/release_publish.py +++ b/scripts/release_publish.py @@ -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):