Skip to content

Commit

Permalink
fix: support discussionCount display
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhe421 committed Nov 12, 2024
1 parent 2ed9ee2 commit 131c3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function updateHomeReadme(items) {

const newReadmeContent = readmeContent
.replace(/(?<=<!--workflow-start-->)[\s\S]*(?=<!--workflow-end-->)/, workflowsListStr)
.replace(/(?<=<!--readme:discussionCount-start-->)[\s\S]+(?=<!--readme:discussionCount-end-->)/, `${Numbers.toEmoji(discussionCount)}`);
.replace(/(?<=<!--readme:discussionCount-start-->)[\s\S]+(?=<!--readme:discussionCount-end-->)/, `${discussionCount}`);

fs.writeFileSync(filePath, newReadmeContent);
}
Expand Down

0 comments on commit 131c3c7

Please sign in to comment.