Merge branch 'main' into datas
This commit is contained in:
commit
088365abc3
@ -1,6 +1,11 @@
|
||||
name: Retrieve Events Datas
|
||||
run-name: Retrieve Events Datas
|
||||
on: [push]
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 14 * * 5"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
Retrieve-Events-Datas:
|
||||
@ -18,9 +23,11 @@ jobs:
|
||||
DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }}
|
||||
DISCORD_GUILD_ID: ${{ secrets.DISCORD_GUILD_ID }}
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git config --global user.email "camelia@localhost"
|
||||
git config --global user.name "Camélia Studio"
|
||||
git add events.json
|
||||
git commit -m "Update events.json"
|
||||
git push
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
branch: datas
|
||||
commit_message: "chore: Update Datas"
|
||||
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…
x
Reference in New Issue
Block a user