2021-01-28 18:15:47 +11:00
|
|
|
name: Minify Map JSON
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
2021-01-28 18:42:47 +11:00
|
|
|
- 'boundaries.geo.json'
|
2021-01-28 18:15:47 +11:00
|
|
|
jobs:
|
2021-01-28 18:25:11 +11:00
|
|
|
prepare:
|
2021-01-28 18:15:47 +11:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Update TopoJSON boundaries
|
|
|
|
run: ./.github/scripts/minify-map-json.sh
|
2021-01-28 18:25:11 +11:00
|
|
|
merge:
|
|
|
|
needs: prepare
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Merge CSV to TopoJSON
|
|
|
|
run: |
|
|
|
|
python3 ./.github/scripts/merge_csv_to_topojson.py
|
2021-01-28 18:15:47 +11:00
|
|
|
- name: Create Pull Request
|
|
|
|
uses: peter-evans/create-pull-request@v3
|
|
|
|
with:
|
|
|
|
commit-message: Update TopoJSON boundaries
|
|
|
|
title: Update TopoJSON boundaries
|
|
|
|
body: Clean and minify GeoJSON and process to TopoJSON
|
|
|
|
branch: geo-to-topo
|