chore(ci): allow synced repos to not have sections
This commit is contained in:
committed by
Tobias Fried
parent
1f1b3450c1
commit
31595b49cf
@@ -15,7 +15,7 @@ const SYNC_SECTIONS = ["LINKS"];
|
|||||||
|
|
||||||
for (const section of SYNC_SECTIONS) {
|
for (const section of SYNC_SECTIONS) {
|
||||||
const sectionContent = extractSection(readmeContent, section);
|
const sectionContent = extractSection(readmeContent, section);
|
||||||
if (!sectionContent) throw new Error(`Section ${section} not found in README.md`);
|
if (!sectionContent) continue;
|
||||||
|
|
||||||
const targetReadmeContent = fs.readFileSync(targetReadmePath, "utf8");
|
const targetReadmeContent = fs.readFileSync(targetReadmePath, "utf8");
|
||||||
const updatedDocsContent = updateSection(targetReadmeContent, section, sectionContent);
|
const updatedDocsContent = updateSection(targetReadmeContent, section, sectionContent);
|
||||||
|
|||||||
Reference in New Issue
Block a user