From 8076f89a232d21b1cd027e9ca0f4f0a697cb1880 Mon Sep 17 00:00:00 2001 From: Omar Siam Date: Wed, 29 Nov 2023 18:19:41 +0100 Subject: [PATCH] Short should be max 63 characters else the generated URL does not work --- .github/workflows/starter.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/starter.yaml b/.github/workflows/starter.yaml index 2f7dc26..eeffbb9 100644 --- a/.github/workflows/starter.yaml +++ b/.github/workflows/starter.yaml @@ -40,7 +40,7 @@ jobs: else echo "environment=review/${{ github.ref_name }}" echo "environment=review/${{ github.ref_name }}" >> $GITHUB_OUTPUT - echo "environment_short=$(echo -n ${{ github.ref_name }} | sed 's/feat\(ure\)\{0,1\}[_/]//' | tr '_' '-' | tr '[:upper:]' '[:lower:]' )" >> $GITHUB_OUTPUT + echo "environment_short=$(echo -n ${{ github.ref_name }} | sed 's/feat\(ure\)\{0,1\}[_/]//' | tr '_' '-' | tr '[:upper:]' '[:lower:]' | cut -c -63 )" >> $GITHUB_OUTPUT fi generate_workflow_vars: needs: [setup_workflow_env]