Skip to content

Commit c3a08f4

Browse files
committed
[] Fixing issue with createPipeline vars
1 parent 5767e46 commit c3a08f4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Models/GitLab/GitLabRepository.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,11 @@ public function runCICD(string $commitRef, array $variables = []): void
334334
try {
335335
$tmp = [];
336336
foreach ($variables as $key => $value) {
337-
$tmp[]['key'] = $key;
338-
$tmp[]['variable_type'] = 'env_var';
339-
$tmp[]['value'] = $value;
337+
$tmp[] = [
338+
'key' => $key,
339+
'variable_type' => 'env_var',
340+
'value' => $value,
341+
];
340342
}
341343

342344
$this->client->projects()->createPipeline($this->id, $commitRef, $tmp);

0 commit comments

Comments
 (0)