fix: just restart

This commit is contained in:
Andras Bacsai 2024-06-11 13:12:53 +02:00
parent b8ec3f5704
commit 8b95b3c1bf

View File

@ -316,7 +316,6 @@ private function decide_what_to_do()
{ {
if ($this->restart_only) { if ($this->restart_only) {
$this->just_restart(); $this->just_restart();
return; return;
} elseif ($this->pull_request_id !== 0) { } elseif ($this->pull_request_id !== 0) {
$this->deploy_pull_request(); $this->deploy_pull_request();
@ -737,9 +736,8 @@ private function just_restart()
$this->check_git_if_build_needed(); $this->check_git_if_build_needed();
$this->generate_image_names(); $this->generate_image_names();
$this->check_image_locally_or_remotely(); $this->check_image_locally_or_remotely();
if ($this->should_skip_build()) { $this->should_skip_build();
return; $this->next(ApplicationDeploymentStatus::FINISHED->value);
}
} }
private function should_skip_build() private function should_skip_build()