Skip to content

Commit

Permalink
Always run all after-jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
thisispiers committed Mar 21, 2024
1 parent f9cf784 commit ec2bf86
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Deployment/Deployer.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,9 @@ public function deploy(): void
if (!$toUpload && !$toDelete) {
$this->logger->log('Already synchronized.', 'lime');

$runAfterLocal = array_filter($this->runAfter, fn($job) => is_string($job) && preg_match('#^local:#', $job));
if ($runAfterLocal) {
$this->logger->log("\nLocal-after-jobs:");
$this->runJobs($runAfterLocal);
if ($this->runAfter) {
$this->logger->log("\nAfter-jobs:");
$this->runJobs($this->runAfter);
}
return;

Expand Down

0 comments on commit ec2bf86

Please sign in to comment.