From a9670a21bfc235f1606ed8270360b14228bd790a Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Fri, 13 Oct 2023 10:34:02 +0100 Subject: [PATCH] fix helm namespace --- .github/workflows/pr-deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pr-deploy.yml b/.github/workflows/pr-deploy.yml index 5bcdc2ca1e49f..81638f4d29967 100644 --- a/.github/workflows/pr-deploy.yml +++ b/.github/workflows/pr-deploy.yml @@ -62,7 +62,10 @@ jobs: export PR_NUM=${{ github.event.number }} export BRANCH_NAME=${{ github.head_ref }} export RELEASE_NAME=posthog + # branch name but with no forward slashes export NAMESPACE=pr-$PR_NUM-${BRANCH_NAME//\//-} + # and no full stops + export NAMESPACE=${NAMESPACE//./-} export NAMESPACE=${NAMESPACE:0:38} export NAMESPACE=${NAMESPACE%%-} export HOSTNAME=$NAMESPACE