Skip to content

Create parse.py

Create parse.py #4

Workflow file for this run

name: Update Card JSON File
on:
workflow_dispatch:
push:
branches:
- web-ui
jobs:
update-json:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Run script to update cards.json
run: python parse.py
- name: Commit and push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add cards.json
git diff --cached --quiet || (git commit -m "Auto-update Card JSON File" && git push)