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