public_library_map/.github/workflows/merge-csv-to-topojson.yml
Hugh Rundle 92ad548b92 fix Action workflows
- fix incorrect key name in merge file (json_data['objects']['boundaries.geo'] rather than json_data['objects']['boundaries'])
- don't merge csv and topo.json when topo.json changes, as this will create an infinite loop
- run merge as part of geo-to-topo Action, after new topo file is created
- remove redundant shell file
2021-01-29 08:28:40 +11:00

25 lines
679 B
YAML

name: Merge CSV to TopoJSON
on:
push:
branches:
- master
paths:
- website/data/library_services_information.csv
jobs:
mergeData:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Merge CSV to TopoJSON
run: |
python3 ./.github/scripts/merge_csv_to_topojson.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: update TopoJSON
title: Update TopoJSON
body: Update boundaries.topo.json with new data from library_services_information.csv
branch: auto-update-topo