mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-31 11:57:50 +01:00
Working
This commit is contained in:
@@ -51,16 +51,12 @@ export async function UpdateGitHubReadme(): Promise<void> {
|
|||||||
|
|
||||||
if (!change) return
|
if (!change) return
|
||||||
|
|
||||||
let new_content = content.replace(old_stats_table, stats_table).replace(old_infos_table, infos_table);
|
let new_content = content.replace(old_stats_table, stats_table);
|
||||||
|
new_content = new_content.replace(old_infos_table, infos_table)
|
||||||
|
|
||||||
console.log(" NEW CONTENT ")
|
console.log(" NEW CONTENT ")
|
||||||
console.log(new_content)
|
console.log(new_content)
|
||||||
console.log(" ")
|
console.log(" ")
|
||||||
console.log(" INFOS CHECK ")
|
|
||||||
console.log(old_infos_table)
|
|
||||||
console.log(" ")
|
|
||||||
console.log(" STATS CHECK ")
|
|
||||||
console.log(old_stats_table)
|
|
||||||
|
|
||||||
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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user