Skip to content

Commit 87f8a79

Browse files
committed
More backtics for codefence
1 parent 58edfb2 commit 87f8a79

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/preview-readme.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
git-push: false
2929
output-file: ../../README.md
30-
template-file: ../../README.md.gotmpl
30+
template-files: ../../README.md.gotmpl
3131

3232
- name: Check for README changes
3333
id: check-changes
@@ -84,6 +84,7 @@ jobs:
8484
github-token: ${{ secrets.GITHUB_TOKEN }}
8585
script: |
8686
const diff = `${{ steps.diff.outputs.diff }}`;
87+
// Use 4 backticks for the outer fence to safely contain any triple backticks in the diff
8788
const body = `<!-- helm-docs-preview -->
8889
## 📝 README.md Preview
8990
@@ -92,9 +93,9 @@ jobs:
9293
<details>
9394
<summary>Click to expand diff</summary>
9495
95-
\`\`\`diff
96+
\`\`\`\`diff
9697
${diff}
97-
\`\`\`
98+
\`\`\`\`
9899
99100
</details>
100101

0 commit comments

Comments
 (0)