Skip to content

Commit d41dfbc

Browse files
committed
Quote step names to work around mermaid-js/mermaid#2495
Fixes #76 Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
1 parent f974e0c commit d41dfbc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/stepTracer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ function generateTraceChartForSteps(job: WorkflowJobType): string {
3131
}
3232
chartContent = chartContent.concat(
3333
'\t',
34-
`${step.name.replace(/:/g, '-')} : `
34+
// Quote the step names to work around https://github.com/mermaid-js/mermaid/issues/2495
35+
`"${step.name.replace(/:/g, '-')}" : `
3536
)
3637

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

0 commit comments

Comments
 (0)