From a03a9e6a781eba4772edb24592169cff9fa1a8b4 Mon Sep 17 00:00:00 2001 From: Nikita Belonogov Date: Mon, 23 Dec 2024 22:33:23 +0400 Subject: [PATCH] ci: PLT-607: Remove dangling hyphen in release name --- .github/workflows/docker-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index a3e9453..d005e53 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -47,8 +47,8 @@ jobs: BRANCH_NAME: ${{ inputs.branch_name }} run: | set -x - pretty_branch_name="$(echo -n "${BRANCH_NAME#refs/heads/}" | sed 's#/#-#g' | sed 's#_#-#g'| sed 's#\.#-#g' | tr '[:upper:]' '[:lower:]')" - echo "pretty_branch_name=$pretty_branch_name" >> $GITHUB_OUTPUT + pretty_branch_name="$(echo -n "${BRANCH_NAME#refs/heads/}" | sed -E 's#[/_\.-]+#-#g' | tr '[:upper:]' '[:lower:]' | cut -c1-25 | sed -E 's#-$##g')" + echo "pretty_branch_name=${pretty_branch_name}" >> "${GITHUB_OUTPUT}" current_time="$(date +'%Y%m%d.%H%M%S')" branch="-${pretty_branch_name}" short_sha="$(git rev-parse --short HEAD)"