We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0aeb3e7 commit 8a6a5a2Copy full SHA for 8a6a5a2
.github/actions/normalize-branch-name/action.yaml
@@ -11,9 +11,7 @@ runs:
11
run: |
12
branch=$(git rev-parse --abbrev-ref HEAD)
13
stripped=$(echo $branch | sed -e 's/[^a-zA-Z0-9-]//g' | tr '[:upper:]' '[:lower:]')
14
- echo $stripped
15
- starting_from_jira_ref=$(echo $stripped | grep -Eo '\d{4,}.*' || true)
16
- echo $starting_from_jira_ref
+ starting_from_jira_ref=$(echo $stripped | sed -n 's/.*\([0-9]\{4,\}.*\)$/\1/p')
17
with_fallback=${starting_from_jira_ref:-$stripped}
18
chopped=$(echo $with_fallback | head -c 15)
19
echo "normalized_branch_name=$chopped" >> $GITHUB_OUTPUT
0 commit comments