Skip to content

Commit

Permalink
Iterate
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Oct 24, 2023
1 parent ec5a514 commit df0a5c5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/gen-workflow-mermaid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -556,13 +556,11 @@ components.forEach((graph) => {
if (job.strategy.matrix.include) {
variations.push(...job.strategy.matrix.include);
}
if (job.strategy.matrix.exclude) {
job.strategy.matrix.exclude.forEach((exclusion) => {
variations = variations.filter((variation) => {
return !shallowCompare(exclusion, variation);
});
job.strategy.matrix.exclude?.forEach((exclusion) => {
variations = variations.filter((variation) => {
return !shallowCompare(exclusion, variation);
});
}
});

// TODO validate edge case
if (variations.length === 0) {
Expand Down

0 comments on commit df0a5c5

Please sign in to comment.