Skip to content

Commit b4e8dd6

Browse files
committed
fix(circleci): do not add build-image requires to approval jobs
1 parent 2e91c77 commit b4e8dd6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/providers/circleci/generator.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,10 @@ impl CircleCIGenerator {
766766

767767
// Inject requires into jobs that reference these images
768768
for (_name, job) in jobs.iter_mut() {
769+
// Skip approval jobs; they don't run a container and shouldn't depend on build jobs
770+
if job.job_type.as_deref() == Some("approval") {
771+
continue;
772+
}
769773
let image_ref = job.image.clone();
770774
if image_ref.contains('/') || image_ref.contains(':') {
771775
continue;

0 commit comments

Comments
 (0)