From d41dfbc51218824ece43cafdd8a1d63472aadbd8 Mon Sep 17 00:00:00 2001 From: Chance Zibolski Date: Mon, 22 Jul 2024 17:11:37 -0700 Subject: [PATCH] Quote step names to work around mermaid-js/mermaid#2495 Fixes #76 Signed-off-by: Chance Zibolski --- src/stepTracer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stepTracer.ts b/src/stepTracer.ts index 8e1fd45..5494178 100644 --- a/src/stepTracer.ts +++ b/src/stepTracer.ts @@ -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) {