Skip to content

Commit 9246b24

Browse files
ci: PLT-607: Remove dangling hyphen in release name
1 parent 17fea48 commit 9246b24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ jobs:
6161
run: |
6262
set -xueo pipefail
6363
MAX_TAG_LENGTH=50
64-
pretty_branch_name="$(echo -n "${BRANCH_NAME#refs/heads/}" | sed 's#/#-#g' | sed 's#_#-#g'| sed 's#\.#-#g' | tr '[:upper:]' '[:lower:]')"
65-
echo "pretty_branch_name=$pretty_branch_name" >> $GITHUB_OUTPUT
64+
pretty_branch_name="$(echo -n "${BRANCH_NAME#refs/heads/}" | sed -E 's#[/_\.-]+#-#g' | tr '[:upper:]' '[:lower:]' | cut -c1-25 | sed -E 's#-$##g')"
65+
echo "pretty_branch_name=${pretty_branch_name}" >> "${GITHUB_OUTPUT}"
6666
timestamp="$(date +'%Y%m%d.%H%M%S')"
6767
echo "timestamp=$timestamp" >> $GITHUB_OUTPUT
6868
short_sha="$(git rev-parse --short HEAD)"

0 commit comments

Comments
 (0)