Hugh Rundle
67f63d9202
- apparently it needs sudo with no password to npm install? - also added ability to run the json update action manually
31 lines
810 B
YAML
31 lines
810 B
YAML
name: Minify Map JSON
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'boundaries.geo.json'
|
|
workflow_dispatch:
|
|
jobs:
|
|
prepare:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Update TopoJSON boundaries
|
|
run: ./.github/scripts/minify-map-json.sh
|
|
merge:
|
|
needs: prepare
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- 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 boundaries
|
|
title: Update TopoJSON boundaries
|
|
body: Clean and minify GeoJSON and process to TopoJSON
|
|
branch: geo-to-topo |