Skip to content

Commit

Permalink
Updated composer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sebprt committed Jan 10, 2024
1 parent 531e257 commit 2c758e4
Show file tree
Hide file tree
Showing 2 changed files with 188 additions and 27 deletions.
209 changes: 185 additions & 24 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ private function compileWorkflow(array $config): Satellite\Builder\Repository\Wo
)
);

foreach ($config['workflow']['jobs'] as $job) {
foreach ($config['workflow']['jobs'] as $code => $job) {
if (\array_key_exists('pipeline', $job)) {
$pipeline = $this->compilePipelineJob($job);
$pipelineFilename = sprintf('%s.php', uniqid('pipeline'));
Expand All @@ -293,7 +293,7 @@ private function compileWorkflow(array $config): Satellite\Builder\Repository\Wo
)
);

$workflow->addPipeline($job['code'], $pipelineFilename);
$workflow->addPipeline($code, $pipelineFilename);
} elseif (\array_key_exists('action', $job)) {
$action = $this->compileActionJob($job);
$actionFilename = sprintf('%s.php', uniqid('action'));
Expand All @@ -310,7 +310,7 @@ private function compileWorkflow(array $config): Satellite\Builder\Repository\Wo
)
);

$workflow->addAction($job['code'], $actionFilename);
$workflow->addAction($code, $actionFilename);
} else {
throw new \LogicException('Not implemented');
}
Expand Down

0 comments on commit 2c758e4

Please sign in to comment.