From b6808e5185fce36b3136b525a5b97fc25f4b71d3 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 20 Dec 2020 17:03:00 +0100 Subject: [PATCH] working --- app/tasks/UpdateGithubReadme.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/app/tasks/UpdateGithubReadme.ts b/app/tasks/UpdateGithubReadme.ts index e1d95d5..1f27c72 100644 --- a/app/tasks/UpdateGithubReadme.ts +++ b/app/tasks/UpdateGithubReadme.ts @@ -51,24 +51,12 @@ export async function UpdateGitHubReadme(): Promise { if (!change) return let new_content = content.replace(old_stats_table, stats_table + '\n\n'); - new_content = new_content.replace(old_infos_table, infos_table) + new_content = new_content.replace(old_infos_table, infos_table + '\n') console.log(" NEW CONTENT ") console.log(new_content) console.log(" ") - console.log(" INFOS ") - console.log(infos_table) - console.log(" ") - console.log(old_infos_table) - console.log(" ") - - console.log(" STATS ") - console.log(stats_table) - console.log(" ") - console.log(old_stats_table) - console.log(" ") - await axios.put('https://api.github.com/repos/ArthurDanjou/ArthurDanjou/contents/README.md', { headers: { authorization: `Bearer ${Env.get('GITHUB_TOKEN')}`