File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -94,17 +94,17 @@ Toolkit.run(
9494 const readmeContent = fs . readFileSync ( './README.md' , 'utf-8' ) . split ( '\n' )
9595
9696 let startIdx = readmeContent . findIndex (
97- ( content ) => content === '<!--START -->'
97+ ( content ) => content === '<!--START_SECTION:activity -->'
9898 )
9999 if (
100- readmeContent . includes ( '<!--START -->' ) &&
101- ! readmeContent . includes ( '<!--END -->' )
100+ readmeContent . includes ( '<!--START_SECTION:activity -->' ) &&
101+ ! readmeContent . includes ( '<!--END_SECTION:activity -->' )
102102 ) {
103103 startIdx ++
104104 content . forEach ( ( line , idx ) =>
105105 readmeContent . splice ( startIdx + idx , 0 , `${ idx + 1 } . ${ line } ` )
106106 )
107- readmeContent . splice ( startIdx + content . length , 0 , '<!--END -->' )
107+ readmeContent . splice ( startIdx + content . length , 0 , '<!--END_SECTION:activity -->' )
108108 fs . writeFileSync ( './README.md' , readmeContent . join ( '\n' ) )
109109 try {
110110 await commitFile ( )
@@ -116,7 +116,7 @@ Toolkit.run(
116116 }
117117
118118 const endIdx = readmeContent . findIndex (
119- ( content ) => content === '<!--END -->'
119+ ( content ) => content === '<!--END_SECTION:activity -->'
120120 )
121121 const oldContent = readmeContent . slice ( startIdx + 1 , endIdx ) . join ( '\n' )
122122 console . log ( )
You can’t perform that action at this time.
0 commit comments