-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.04 KB
/
quests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Update Quests.json
on:
push:
branches:
- main
workflow_dispatch:
jobs:
run-quest-scraper:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.9.0'
- name: Install Node.js dependencies
run: npm install
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pandas requests tqdm
- name: Run prepare_quest_data.py
run: npm run quests -- --auto-yes
- name: Commit Updated Quests.json
run: |
git config --local user.name "GitHub Actions"
git config --local user.email "[email protected]"
git add static/Quests.json
git commit -m "[GA] Update Quests.json" || echo "[GA] No changes to commit"
git push