Camelianimes-Datas/.gitea/workflows/retrieve-datas.yaml

27 lines
784 B
YAML
Raw Normal View History

2024-10-04 10:54:51 +00:00
name: Retrieve Events Datas
run-name: Retrieve Events Datas
on: [push]
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
2024-10-04 11:18:32 +00:00
env:
DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }}
DISCORD_GUILD_ID: ${{ secrets.DISCORD_GUILD_ID }}
2024-10-04 10:54:51 +00:00
- 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
2024-10-04 11:03:26 +00:00
git commit -m "Update events.json"
2024-10-04 10:54:51 +00:00
git push