Skip to content

Commit

Permalink
Improve naming for matrix job subgraph
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Oct 26, 2023
1 parent b82e49e commit 7c4d3fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/gen-workflow-mermaid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,8 @@ components.forEach((graph) => {
return;
}

printer.subgraph(job.id, job.name, () => {
const jobName = job.name.replace(/\${{.+}}/g, "").replace(/(?:\(\)| )+/g, " ");
printer.subgraph(job.id, jobName, () => {
variations.forEach((variation, i) => {
let variationName = job.name;
if (variationName.includes("${{ matrix.")) {
Expand Down

0 comments on commit 7c4d3fb

Please sign in to comment.