Skip to content

Commit f022795

Browse files
committed
target_name = primary_build_target
1 parent 225eb5c commit f022795

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

action.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,17 @@ def get_build_targetname(primary_build_target,branch_and_label):
131131
raise Exception(f"get_build_target_name() requires branch_and_label")
132132

133133
# sanitise label for unity cloud build's restrictions
134-
target_name = branch_and_label.label
134+
target_name = primary_build_target
135+
# target_name = "branch_and_label.label"
135136
# replace any special chars and ensure length is max of 56 chars
136137
# 64 is the limit, but we allow some free chars for platform
137138
# todo: just do 64-(prefix-length)
138-
target_name = re.sub("[^0-9a-zA-Z]+", "-", target_name)
139-
target_name = f"{primary_build_target}-{target_name}"
139+
# target_name = re.sub("[^0-9a-zA-Z]+", "-", target_name)
140+
# target_name = f"{primary_build_target}-{target_name}"
140141
# 64 char limit for targets (citation needed)
141-
target_name = target_name[:63]
142+
# target_name = target_name[:63]
142143
# targets must be lower case
143-
target_name = target_name.lower()
144+
# target_name = target_name.lower()
144145

145146
return target_name
146147

0 commit comments

Comments
 (0)