Fix script
Some checks failed
Retrieve Events Datas / Retrieve-Events-Datas (push) Failing after 13s

This commit is contained in:
Melaine Gérard 2024-10-04 13:22:20 +02:00
parent f035ff999c
commit 1248460946
2 changed files with 3 additions and 1 deletions

View File

@ -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>"

View File

@ -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));
})()