diff --git a/cd.sh b/cd.sh index cc230b0..85e8ed4 100644 --- a/cd.sh +++ b/cd.sh @@ -27,8 +27,8 @@ case "${CD_OS_NAME}" in ;; esac # project / branch -[ "${CI_COMMIT_BRANCH}" ] && CD_PROJECT_BRANCH="${CI_COMMIT_BRANCH}" -[ "${GITHUB_REF_NAME}" ] && CD_PROJECT_BRANCH="${GITHUB_REF_NAME}" +[ "${CI_COMMIT_BRANCH}" ] && export CD_PROJECT_BRANCH="${CI_COMMIT_BRANCH}" +[ "${GITHUB_REF_NAME}" ] && export CD_PROJECT_BRANCH="${GITHUB_REF_NAME}" if [ "${CD_PROJECT_BRANCH}" ] ; then echo "CD_PROJECT_BRANCH = ${CD_PROJECT_BRANCH}" else