Camelianimes-Datas/.gitea/workflows/retrieve-datas.yaml
Melaine Gérard 1248460946
Some checks failed
Retrieve Events Datas / Retrieve-Events-Datas (push) Failing after 13s
Fix script
2024-10-04 13:25:03 +02:00

33 lines
986 B
YAML

name: Retrieve Events Datas
run-name: Retrieve Events Datas
on:
schedule:
- cron: "0 14 * * 5"
push:
branches:
- main
jobs:
Retrieve-Events-Datas:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: "20.x"
- run: npm ci
- run: npm run retrieve-datas
env:
DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }}
DISCORD_GUILD_ID: ${{ secrets.DISCORD_GUILD_ID }}
- name: Commit and push changes
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>"