public_library_map/.github/workflows/update-topo-on-info-push.yml
Hugh Rundle bee5f4aa4d fix action logic to avoid recursion
ignore changes to 'boundaries.topo.json' on PUSH actions to avoid triggering the push action when PRs are merged, since they already got updated at the PR stage.
2021-01-29 20:19:20 +11:00

25 lines
544 B
YAML

name: topo auto updater
on:
push:
branches:
- "master"
paths:
- 'website/data/library_services_information.csv'
- '!website/data/boundaries.topo.json'
jobs:
auto-topo-updater:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Merge CSV to TopoJSON
run: |
python3 ./.github/scripts/merge_csv_to_topojson.py
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: merge csv data to topo