From a140fb797eb3c7074f6dffeee53d9a034bcf8b87 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 20 Dec 2020 16:05:01 +0100 Subject: [PATCH] debug content --- app/tasks/UpdateGithubReadme.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/tasks/UpdateGithubReadme.ts b/app/tasks/UpdateGithubReadme.ts index 31cf9cc..db85a0b 100644 --- a/app/tasks/UpdateGithubReadme.ts +++ b/app/tasks/UpdateGithubReadme.ts @@ -51,8 +51,9 @@ export async function UpdateGitHubReadme(): Promise { // Ignore the change if the contents is the same if (!change) return - let new_content = content.replace(old_stats_table, stats_table); - new_content = new_content.replace(old_infos_table, infos_table) + console.log(content) + let new_content = content.replace(old_stats_table, stats_table).replace(old_infos_table, infos_table); + console.log(new_content) await axios.put('https://api.github.com/repos/ArthurDanjou/ArthurDanjou/contents/README.md', { headers: {