Camelianimes-Datas/.gitea/workflows/retrieve-datas.yaml
Melaine Gérard 89129bc142
Some checks failed
Retrieve Events Datas / Retrieve-Events-Datas (push) Failing after 12s
On lance la CI tout les vendredi à 14h et à chaque push sur la main
2024-10-04 13:08:06 +02:00

31 lines
802 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
- 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 checkout datas
git merge master
git push -u origin datas