-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (50 loc) · 2.01 KB
/
DBs.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Autogenerate DBs
on:
push:
branches:
- main
paths:
- 'data/**/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
classes:
- 'data/classes/**'
combatStyles:
- 'data/combatStyles/**'
maneuvers:
- 'data/maneuvers/**'
spells:
- 'data/spells/**'
talents:
- 'data/talents/**'
weaponStyles:
- 'data/weaponStyles/**'
- if: ${{github.events.type == 'WorkflowDispatch' || steps.changes.outputs.classes == 'true'}}
run: python3 .github/workflows/createDB.py Class classes
- if: ${{github.events.type == 'WorkflowDispatch' || steps.changes.outputs.combatStyles == 'true'}}
run: python3 .github/workflows/createDB.py CombatStyle combatStyles
- if: ${{github.events.type == 'WorkflowDispatch' || steps.changes.outputs.maneuvers == 'true'}}
run: python3 .github/workflows/createDB.py Maneuver maneuvers
- if: ${{github.events.type == 'WorkflowDispatch' || steps.changes.outputs.spells == 'true'}}
run: python3 .github/workflows/createDB.py Spell spells
- if: ${{github.events.type == 'WorkflowDispatch' || steps.changes.outputs.talents == 'true'}}
run: python3 .github/workflows/createDB.py Talent talents
- if: ${{github.events.type == 'WorkflowDispatch' || steps.changes.outputs.weaponStyles == 'true'}}
run: python3 .github/workflows/createDB.py WeaponStyle weaponStyles
- uses: EndBug/add-and-commit@v9.1.0
with:
add: 'data/*.js'
author_name: Argavyon
author_email: 75849479+Argavyon@users.noreply.github.com
default_author: github_actor
fetch: --force
message: Auto-generated DBs
push: true