project_name
Some checks failed
/ job (push) Failing after 6s

This commit is contained in:
Marc Beninca 2024-04-27 01:37:18 +02:00
parent 839f6eea14
commit 6e939f50f1
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

5
cd.sh
View file

@ -27,8 +27,9 @@ case "${CD_OS_NAME}" in
exit 1
;;
esac
#
[ "${CI_PROJECT_NAME}" ] && CD_PROJECT_NAME="${CI_PROJECT_NAME}"
# project / name
[ "${CI_PROJECT_PATH}" ] \
&& CD_PROJECT_NAME="$(basename "${CI_PROJECT_PATH}")"
[ "${GITHUB_REPOSITORY}" ] \
&& CD_PROJECT_NAME="$(basename "${GITHUB_REPOSITORY}")"
if [ "${CD_PROJECT_NAME}" ] ; then