mv
Some checks failed
/ job (push) Failing after 7s

This commit is contained in:
Marc Beninca 2024-04-27 01:46:40 +02:00
parent db411d73a5
commit 4e4439fcb2
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

18
cd.sh
View file

@ -27,6 +27,15 @@ case "${CD_OS_NAME}" in
exit 1 exit 1
;; ;;
esac esac
# project / branch
[ "${CI_COMMIT_BRANCH}" ] && CD_PROJECT_BRANCH="${CI_COMMIT_BRANCH}"
[ "${GITHUB_REF_NAME}" ] && CD_PROJECT_BRANCH="${GITHUB_REF_NAME}"
if [ "${CD_PROJECT_BRANCH}" ] ; then
echo "CD_PROJECT_BRANCH = ${CD_PROJECT_BRANCH}"
else
echo 'CD_PROJECT_BRANCH'
exit 3
fi
# project / name # project / name
[ "${CI_PROJECT_PATH}" ] \ [ "${CI_PROJECT_PATH}" ] \
&& CD_PROJECT_NAME="$(basename "${CI_PROJECT_PATH}")" && CD_PROJECT_NAME="$(basename "${CI_PROJECT_PATH}")"
@ -60,15 +69,6 @@ else
echo 'CD_REPOSITORIES_URL' echo 'CD_REPOSITORIES_URL'
exit 3 exit 3
fi fi
#
[ "${CI_COMMIT_BRANCH}" ] && CD_PROJECT_BRANCH="${CI_COMMIT_BRANCH}"
[ "${GITHUB_REF_NAME}" ] && CD_PROJECT_BRANCH="${GITHUB_REF_NAME}"
if [ "${CD_PROJECT_BRANCH}" ] ; then
echo "CD_PROJECT_BRANCH = ${CD_PROJECT_BRANCH}"
else
echo 'CD_PROJECT_BRANCH'
exit 3
fi
function cd_step { function cd_step {
if [ "${1}" ] ; then if [ "${1}" ] ; then