-
Notifications
You must be signed in to change notification settings - Fork 46
44 lines (39 loc) · 1.1 KB
/
regenerate.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: Regenerate JSON
on:
workflow_dispatch:
schedule:
- cron: '0 13 * * 3'
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
env:
GH_TOKEN: ${{ secrets.CDN_REFRESH_TOKEN }}
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
cd scripts
pip install -r requirements.txt
- name: Run update scripts
run: |
cd scripts
python generateEquipment.py
python generateEquipmentAliases.py
python generateMonsters.py
- name: Create pull request
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git switch -C regenerate-json
git add .
git commit -m "[automated] Update JSON files"
git push --set-upstream origin regenerate-json --force
gh pr create -B main -f