Skip to content

Commit 8b95b3c

Browse files
committed
fix: just restart
1 parent b8ec3f5 commit 8b95b3c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/Jobs/ApplicationDeploymentJob.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ private function decide_what_to_do()
316316
{
317317
if ($this->restart_only) {
318318
$this->just_restart();
319-
320319
return;
321320
} elseif ($this->pull_request_id !== 0) {
322321
$this->deploy_pull_request();
@@ -737,9 +736,8 @@ private function just_restart()
737736
$this->check_git_if_build_needed();
738737
$this->generate_image_names();
739738
$this->check_image_locally_or_remotely();
740-
if ($this->should_skip_build()) {
741-
return;
742-
}
739+
$this->should_skip_build();
740+
$this->next(ApplicationDeploymentStatus::FINISHED->value);
743741
}
744742

745743
private function should_skip_build()

0 commit comments

Comments
 (0)