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