From 801e8240950c3bc5b558ab1ffe8b991bf327d1b0 Mon Sep 17 00:00:00 2001 From: Theophile Sandoz Date: Fri, 22 Mar 2024 20:52:12 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=AC=20Fix=20CI=20on=20branches=20with?= =?UTF-8?q?=202=20slashes=20(#4817)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix CI on branches with 2 slashes --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2731f1568d..30b80ab257 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -110,7 +110,7 @@ jobs: BRANCH=$(echo -n '${{ env.LABEL }}' | cut -d ':' -f2-) fi - URL_BRANCH=$(echo -n "$BRANCH" | tr -d '#' | tr -c '[:alnum:]' '-' | tr '[:upper:]' '[:lower:]') + URL_BRANCH=$(echo -n "$BRANCH" | sed 's/\//-/' | tr -d '/#' | tr -c '[:alnum:]' '-' | tr '[:upper:]' '[:lower:]') SUBDOMAIN="${{ env.PROJECT }}-${{ env.PREFIX }}-$URL_BRANCH-joystream" if [ ${#SUBDOMAIN} -gt 63 ]; then