Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4a6d3b4

Browse files
author
Peter Bengtsson
authored
skip README.md in content changes table (#34118)
1 parent 80f2c27 commit 4a6d3b4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/actions-scripts/content-changes-table-comment.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ async function main(owner, repo, baseSHA, headSHA) {
6262
let markdownTable = ''
6363

6464
const pathPrefix = 'content/'
65-
const articleFiles = files.filter(({ filename }) => filename.startsWith(pathPrefix))
65+
const articleFiles = files.filter(
66+
({ filename }) => filename.startsWith(pathPrefix) && filename.toLowerCase() !== 'readme.md'
67+
)
6668

6769
const lines = await Promise.all(
6870
articleFiles.map(async (file) => {

0 commit comments

Comments
 (0)