* Fix(Fortune): Missing fortune and themes check on ci * Update check-fortune-generator-json.yml
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
name: Check fortune generator JSON files
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'fortune_generator/json/custom_special.json'
|
|
- 'fortune_generator/json/static_special.json'
|
|
- 'fortune_generator/json/cyclical_special.json'
|
|
- 'fortune_generator/json/fortune.json'
|
|
- 'fortune_generator/json/themes.json'
|
|
|
|
push:
|
|
paths:
|
|
- 'fortune_generator/json/custom_special.json'
|
|
- 'fortune_generator/json/static_special.json'
|
|
- 'fortune_generator/json/cyclical_special.json'
|
|
- 'fortune_generator/json/fortune.json'
|
|
- 'fortune_generator/json/themes.json'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
- name: Check Custom Special Events
|
|
run: |
|
|
python3 scripts/check-events.py fortune_generator/json/custom_special.json custom
|
|
|
|
- name: Check Static Special Events
|
|
run: |
|
|
python3 scripts/check-events.py fortune_generator/json/static_special.json static
|
|
|
|
- name: Check Cyclical Special Events
|
|
run: |
|
|
python3 scripts/check-events.py fortune_generator/json/cyclical_special.json cyclical
|
|
|
|
- name: Check Fortune
|
|
run: |
|
|
python3 scripts/check-fortune.py fortune_generator/json/fortune.json
|
|
|
|
- name: Check Color Theme
|
|
run: |
|
|
python3 scripts/check-theme.py fortune_generator/json/themes.json
|