Add files via upload #190
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/[email protected] | |
| with: | |
| add: 'data/*.js' | |
| author_name: Argavyon | |
| author_email: [email protected] | |
| default_author: github_actor | |
| fetch: --force | |
| message: Auto-generated DBs | |
| push: true | |