File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
.github/actions/normalize-branch-name Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: "Normalize branch name"
22description : " Normalize branch name"
33outputs :
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 }}
77runs :
88 using : " composite"
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
You can’t perform that action at this time.
0 commit comments