Skip to content

Commit 9445b24

Browse files
Fix YAML syntax error in workflow by converting template literal to string concatenation
Co-authored-by: reindervdw-cmi <200102462+reindervdw-cmi@users.noreply.github.com>
1 parent 88d44d0 commit 9445b24

1 file changed

Lines changed: 10 additions & 17 deletions

File tree

.github/workflows/d2-diagrams.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,16 @@ jobs:
5858
const svgContent = fs.readFileSync(svgPath, 'utf8');
5959
6060
// Create comment body with embedded SVG
61-
const commentBody = `## 🏗️ Architecture Diagram Updated
62-
63-
The D2 architecture diagram has been regenerated based on the changes in this PR.
64-
65-
### Production Architecture
66-
67-
<details>
68-
<summary>Click to view diagram</summary>
69-
70-
${svgContent}
71-
72-
</details>
73-
74-
---
75-
76-
📥 You can also download the diagram from the [workflow artifacts](https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}).
77-
`;
61+
const commentBody = '## 🏗️ Architecture Diagram Updated\n\n' +
62+
'The D2 architecture diagram has been regenerated based on the changes in this PR.\n\n' +
63+
'### Production Architecture\n\n' +
64+
'<details>\n' +
65+
'<summary>Click to view diagram</summary>\n\n' +
66+
svgContent + '\n\n' +
67+
'</details>\n\n' +
68+
'---\n\n' +
69+
'📥 You can also download the diagram from the [workflow artifacts]' +
70+
`(https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}).`;
7871
7972
// Find existing comment
8073
const comments = await github.rest.issues.listComments({

0 commit comments

Comments
 (0)