File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ async function updateReadme(videos, readmeFilePath) {
2323 const endMarker = '<!-- YOUTUBE:END -->' ;
2424
2525 const startIndex = content . indexOf ( startMarker ) ;
26- const endIndex = content . indexOf ( endMarker ) + endMarker . length ;
26+ const endIndex = content . indexOf ( endMarker ) ;
2727
2828 if ( startIndex === - 1 || endIndex === - 1 ) {
2929 core . setFailed ( "Markers for YouTube videos not found in README." ) ;
@@ -42,7 +42,6 @@ ${content.slice(endIndex)}`;
4242 const proxyUrl = 'https://latestvid.stats100.xyz' ;
4343 const channelId = core . getInput ( 'youtube_channel_id' ) ;
4444 const readmeFilePath = core . getInput ( 'readme_file_path' ) ;
45- console . log ( channelId , readmeFilePath )
4645
4746 const videos = await getLatestVideos ( proxyUrl , channelId ) ;
4847 await updateReadme ( videos , readmeFilePath ) ;
You can’t perform that action at this time.
0 commit comments