✨ Fix script
Some checks failed
Retrieve Events Datas / Retrieve-Events-Datas (push) Failing after 13s
Some checks failed
Retrieve Events Datas / Retrieve-Events-Datas (push) Failing after 13s
This commit is contained in:
parent
f035ff999c
commit
1248460946
@ -27,7 +27,7 @@ jobs:
|
||||
with:
|
||||
branch: datas
|
||||
commit_message: "chore: Update Datas"
|
||||
file_pattern: "events.json"
|
||||
file_pattern: "./events.json"
|
||||
commit_user_name: "Camélia Studio"
|
||||
commit_user_email: "cameliastudio@localhost"
|
||||
commit_author: "Camélia Studio <cameliastudio@localhost>"
|
@ -13,5 +13,7 @@ config();
|
||||
.then(response => response.json())
|
||||
.then(data => data);
|
||||
|
||||
if (!Array.isArray(datas)) return;
|
||||
|
||||
writeFileSync("events.json", JSON.stringify(datas, null, 4));
|
||||
})()
|
Loading…
Reference in New Issue
Block a user