parent
118df2942e
commit
b64780811b
1 changed files with 2 additions and 2 deletions
4
cd.sh
4
cd.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue