diff --git a/cd-init b/cd-init index 79a9a46..373e0cd 100755 --- a/cd-init +++ b/cd-init @@ -20,6 +20,8 @@ AAAAC3NzaC1lZDI1NTE5AAAAIPHCNcgHlQoiNTXfnUZYvHz9OZwYsmBCrSSV7a7Zche5 # variables -export SSH="cd@de.tilde.link" +export USER='cd' -export TARGET="${SSH}:/cd/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}" +export SSH="${USER}@$(basename ${GITHUB_SERVER_URL})" + +export TARGET="${SSH}:/${USER}/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}"