diff --git a/app/tasks/UpdateGithubReadme.ts b/app/tasks/UpdateGithubReadme.ts index db85a0b..a5c3485 100644 --- a/app/tasks/UpdateGithubReadme.ts +++ b/app/tasks/UpdateGithubReadme.ts @@ -37,18 +37,21 @@ export async function UpdateGitHubReadme(): Promise { const content = Buffer.from(read_me.content, 'base64').toString() const stats_table_check = '| Statistics' + content.split('| Statistics')[1] + console.log(stats_table_check) if (!stats_table_check) change = true const old_stats_table = stats_table_check.split('\n\n| Informations')[0] if (!old_stats_table) change = true const infos_table_check = '| Informations' + content.split('| Informations')[1] + console.log(infos_table_check) if (!infos_table_check) change = true - const old_infos_table = infos_table_check.split('\n\n###### ')[0] + const old_infos_table = infos_table_check.split('\n\n######')[0] if (!old_infos_table) change = true + console.log(infos_table) + console.log(stats_table) if (old_infos_table == infos_table && old_stats_table == stats_table) change = false - // Ignore the change if the contents is the same if (!change) return console.log(content)