Skip to content

Commit 29575f5

Browse files
committed
CCM-9037: trim branchname a little more
1 parent d78f8bc commit 29575f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/normalize-branch-name/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Normalize branch name"
22
description: "Normalize branch name"
33
outputs:
44
normalized_branch_name:
5-
description: 14 character branch identifier (0000-thebranch)
5+
description: 10 character branch identifier (0000-branch)
66
value: ${{ steps.normalize_branch_name.outputs.normalized_branch_name }}
77
runs:
88
using: "composite"
@@ -14,5 +14,5 @@ runs:
1414
stripped=$(echo $branch | sed -e 's/[^a-zA-Z0-9-]//g' | tr '[:upper:]' '[:lower:]')
1515
starting_from_jira_ref=$(echo $stripped | sed -n 's/.*\([0-9]\{4,\}.*\)/\1/p')
1616
with_fallback=${starting_from_jira_ref:-$stripped}
17-
chopped=$(echo $with_fallback | head -c 14)
17+
chopped=$(echo $with_fallback | head -c 10)
1818
echo "normalized_branch_name=$chopped" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)