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

This commit is contained in:
Marc Beninca 2024-04-27 11:57:55 +02:00
parent 118df2942e
commit b64780811b
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

4
cd.sh
View file

@ -30,8 +30,8 @@ case "${CD_OS_NAME}" in
;; ;;
esac esac
# project / branch # project / branch
[ "${CI_COMMIT_BRANCH}" ] && export CD_PROJECT_BRANCH="${CI_COMMIT_BRANCH}" [ "${CI_COMMIT_BRANCH}" ] && CD_PROJECT_BRANCH="${CI_COMMIT_BRANCH}"
[ "${GITHUB_REF_NAME}" ] && export CD_PROJECT_BRANCH="${GITHUB_REF_NAME}" [ "${GITHUB_REF_NAME}" ] && CD_PROJECT_BRANCH="${GITHUB_REF_NAME}"
if [ ! "${CD_PROJECT_BRANCH}" ] ; then if [ ! "${CD_PROJECT_BRANCH}" ] ; then
echo 'CD_PROJECT_BRANCH' echo 'CD_PROJECT_BRANCH'
exit 3 exit 3