Skip to content

Commit

Permalink
Quote step names to work around mermaid-js/mermaid#2495
Browse files Browse the repository at this point in the history
Fixes catchpoint#76

Signed-off-by: Chance Zibolski <[email protected]>
  • Loading branch information
chancez committed Jul 23, 2024
1 parent f974e0c commit d41dfbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stepTracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ function generateTraceChartForSteps(job: WorkflowJobType): string {
}
chartContent = chartContent.concat(
'\t',
`${step.name.replace(/:/g, '-')} : `
// Quote the step names to work around https://github.com/mermaid-js/mermaid/issues/2495
`"${step.name.replace(/:/g, '-')}" : `
)

if (step.name === 'Set up job' && step.number === 1) {
Expand Down

0 comments on commit d41dfbc

Please sign in to comment.