From 134026e40b77fc60219d546b4ddf2d89fb697a62 Mon Sep 17 00:00:00 2001 From: schmanu Date: Fri, 25 Aug 2023 12:33:12 +0200 Subject: [PATCH] chore: convert deployment branch name to lowercase --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6a05f029ff..5e6c8fab0a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -67,9 +67,9 @@ jobs: # Extract branch name - name: Extract branch name shell: bash - ## Cut off "refs/heads/" and only allow alphanumeric characters, + ## Cut off "refs/heads/", only allow alphanumeric characters and convert to lower case, ## e.g. "refs/heads/features/hello-1.2.0" -> "features_hello_1_2_0" - run: echo "branch=$(echo $GITHUB_HEAD_REF | sed 's/refs\/heads\///' | sed 's/[^a-z0-9]/_/ig')" >> $GITHUB_OUTPUT + run: echo "branch=$(echo $GITHUB_HEAD_REF | sed 's/refs\/heads\///' | sed 's/[^a-z0-9]/_/ig') | sed 's/[A-Z]/\L&/g'" >> $GITHUB_OUTPUT id: extract_branch # Deploy to S3