From ae7ab9c7807b9639a3c27e27693ad270c34769f4 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 20 Dec 2020 17:16:37 +0100 Subject: [PATCH] working --- app/tasks/UpdateGithubReadme.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/tasks/UpdateGithubReadme.ts b/app/tasks/UpdateGithubReadme.ts index 9d5142c..918b0a2 100644 --- a/app/tasks/UpdateGithubReadme.ts +++ b/app/tasks/UpdateGithubReadme.ts @@ -53,11 +53,12 @@ export async function UpdateGitHubReadme(): Promise { let new_content = content.replace(old_stats_table, stats_table + '\n\n'); new_content = new_content.replace(old_infos_table, infos_table + '\n') - await axios.put('https://api.github.com/repos/ArthurDanjou/ArthurDanjou/contents/README.md', { + await axios.put('https://api.github.com/repos/ArthurDanjou/ArthurDanjou/contents/', { headers: { authorization: `Bearer ${Env.get('GITHUB_TOKEN')}` }, json: { + path: 'README.md', message: 'Updating recent statistics & informations', content: Buffer.from(new_content, 'utf8').toString('base64'), sha: read_me.sha,