This commit is contained in:
8
check.sh
8
check.sh
@@ -13,6 +13,14 @@ cleanup() {
|
||||
trap cleanup EXIT
|
||||
CLEAN_EXIT=false
|
||||
|
||||
if [ -n "${EVENT_TYPE}" ]; then
|
||||
if [ "${CI_BUILD_EVENT}" -ne "${EVENT_TYPE}" ]; then
|
||||
echo "skipping check: CI_BUILD_EVENT is not ${EVENT_TYPE}"
|
||||
CLEAN_EXIT=true
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "${BASE}" ]; then
|
||||
echo "the environment variable BASE is not set"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user