Skip to content

Regenerate JSON

Regenerate JSON #82

Workflow file for this run

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