dominiontabs/.github/workflows/compile_card_db.yml
2021-01-28 11:48:28 -08:00

32 lines
881 B
YAML

name: Compile Card DB
on: [push, pull_request, workflow_dispatch]
jobs:
compile_card_db:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- run: |
pip install -r requirements.txt
pip install .
- name: Update Languages
run: doit update_languages
- uses: dorny/paths-filter@v2
id: filter
with:
base: HEAD
filters: |
cardb_target:
- src/domdiv/card_db/**
- name: Commit Results
if: steps.filter.outputs.cardb_target == 'true'
run: |
git config --global user.name 'Github Action: Compile Card DB'
git config --global user.email 'sumpfork@users.noreply.github.com'
git commit -am "Compile Card DB"
git push