mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-02-03 13:27:49 +01:00
working
This commit is contained in:
@@ -51,24 +51,12 @@ export async function UpdateGitHubReadme(): Promise<void> {
|
|||||||
if (!change) return
|
if (!change) return
|
||||||
|
|
||||||
let new_content = content.replace(old_stats_table, stats_table + '\n\n');
|
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(new_content)
|
console.log(new_content)
|
||||||
console.log(" ")
|
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', {
|
await axios.put('https://api.github.com/repos/ArthurDanjou/ArthurDanjou/contents/README.md', {
|
||||||
headers: {
|
headers: {
|
||||||
authorization: `Bearer ${Env.get('GITHUB_TOKEN')}`
|
authorization: `Bearer ${Env.get('GITHUB_TOKEN')}`
|
||||||
|
|||||||
Reference in New Issue
Block a user