diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6c091458174f494ff5d6b8423cbf94c544c2f924..7b7ce8061de5d2d8f377255b17701cbeb314dab1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,7 +26,7 @@ deploy-live: script: - apt update - apt install -y curl - - curl https://sso.sucs.org/pull.php + - curl --fail-with-body https://sso.sucs.org/pull.php only: - master environment: live diff --git a/public/pull.php b/public/pull.php index 57ff895e0221ac31aec126a12b71abbafd4a5645..bf7aa1b3344987c3dead2335a765761ccce1ab45 100644 --- a/public/pull.php +++ b/public/pull.php @@ -7,8 +7,9 @@ if ($retVal == 0) { exit(0); } +http_response_code(500); print("not ok\n"); var_dump($retArr); var_dump($retVal); -?> \ No newline at end of file +?>