dominiontabs/.github/workflows/compile_card_db.yml
Peter Gorniak 430fbafc02
GitHub actions (#331)
* switch github actions
2021-01-12 13:03:33 -08:00

32 lines
846 B
YAML

name: Compile Card DB
on: push
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