2019-02-01 09:58:07 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. hooks/common
|
|
|
|
|
2019-12-10 21:44:11 +01:00
|
|
|
if [ "${SOURCE_BRANCH}" == "release" ] || [ "${DEBUG}" == "true" ]; then
|
|
|
|
if [ "${SOURCE_BRANCH}" != "release" ]; then
|
2019-10-14 23:10:42 +02:00
|
|
|
echo "⚠️⚠️⚠️ Would exit, but DEBUG is '${DEBUG}'".
|
|
|
|
fi
|
|
|
|
|
|
|
|
run_build --push-only
|
|
|
|
else
|
|
|
|
echo "⚠️⚠️⚠️ Only pushing on 'main' branch, but current branch is '${SOURCE_BRANCH}'"
|
|
|
|
exit 0
|
|
|
|
fi
|