Skitounet
61531c12eb
All checks were successful
Retrieve Events Datas / Retrieve-Events-Datas (push) Successful in 2m33s
32 lines
961 B
YAML
32 lines
961 B
YAML
name: Retrieve Events Datas
|
|
run-name: Retrieve Events Datas
|
|
on:
|
|
schedule:
|
|
- cron: "0 2 * * *"
|
|
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 }}
|
|
- run: git fetch --all
|
|
- run: git pull
|
|
- run: git add events.json
|
|
- run: git config --global user.email "cameliastudio@localhost"
|
|
- run: git config --global user.name "[Bot] Camelia Studio"
|
|
- run: git commit -m "Update events datas" --allow-empty
|
|
- run: git checkout -b datas
|
|
- run: git push -u origin datas --force |