Feat(fortune): ci add special event checker (#50)
* Feat(fortune): ci add special event checker * Chore(Fortune): Move all scripts from `dev` to `scripts` and remove outdated scripts
This commit was merged in pull request #50.
This commit is contained in:
35
.github/workflows/check-events.yml
vendored
Normal file
35
.github/workflows/check-events.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Check special events
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'fortune_generator/json/custom_special.json'
|
||||
- 'fortune_generator/json/static_special.json'
|
||||
- 'fortune_generator/json/cyclical_special.json'
|
||||
|
||||
push:
|
||||
paths:
|
||||
- 'fortune_generator/json/custom_special.json'
|
||||
- 'fortune_generator/json/static_special.json'
|
||||
- 'fortune_generator/json/cyclical_special.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
|
||||
Reference in New Issue
Block a user