export/project_branch
Some checks failed
/ job (push) Failing after 5s

This commit is contained in:
Marc Beninca 2024-04-27 02:06:06 +02:00
parent b5caacc647
commit 19f55577c7
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

4
cd.sh
View file

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