Skip to content

Commit db6aa07

Browse files
Merge branch 'master' into 1157-as-a-shop-owner-when-saving-plans-i-see-oops-something-is-mi
2 parents a38a11e + 251b17e commit db6aa07

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/pr-demo-deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ jobs:
4343
- name: Set subdomain (ensure is lowercase for dokku)
4444
run: |
4545
set -x
46-
echo SUBDOMAIN=`echo "${{ github.head_ref }}" | tr '[:upper:]' '[:lower:]' | cut -c -60` >> $GITHUB_ENV
46+
# Enforce max 60 chars, always end with alnum char
47+
echo SUBDOMAIN=`echo "${{ github.head_ref }}" | tr '[:upper:]' '[:lower:]' | cut -c -60 | rev | sed 's/[^[:alnum:]]//1' | rev` >> $GITHUB_ENV
4748
echo $GITHUB_ENV
4849
- name: Create dokku app for pr branch if dosent already exist using dokku apps:create
4950
env:

0 commit comments

Comments
 (0)