public_library_map/.github/workflows/minify-map-json.yml
Hugh Rundle 4e2851fb1d add GitHub action
Processes geojson to topojson on a change to the geojson file.
2021-01-28 18:15:47 +11:00

23 lines
611 B
YAML

name: Minify Map JSON
on:
push:
branches:
- master
paths:
- boundaries.geo.json
jobs:
mergeData:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Update TopoJSON boundaries
run: ./.github/scripts/minify-map-json.sh
- 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