Skip to content

Commit

Permalink
fix: jobs dependency id generator (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
meskill authored Dec 2, 2024
1 parent 6dfb7cc commit 8198564
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/gh-workflow/src/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,14 @@ fn organize_job_dependency(mut workflow: Workflow) -> Workflow {
} else {
// Create a job-id for the job
let id = format!("job-{}", job_id);
job_id += 1;

// Add job id as the dependency
job_ids.push(id.clone());

// Insert the missing job into the new_jobs
new_jobs.insert(format!("job-{}", job_id), dep_job.clone());

job_id += 1;
}
}
job.needs = Some(job_ids);
Expand Down

0 comments on commit 8198564

Please sign in to comment.