From 01246f5964771854a98d31620bddfef274c86058 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Thu, 28 Jan 2021 19:56:57 +1100 Subject: [PATCH 1/3] Update minify-map-json.yml clean up --- .github/workflows/minify-map-json.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/minify-map-json.yml b/.github/workflows/minify-map-json.yml index 2e07610..4b775c9 100644 --- a/.github/workflows/minify-map-json.yml +++ b/.github/workflows/minify-map-json.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Update TopoJSON boundaries + - name: Update GeoJSON boundaries run: | sudo npm install -g mapshaper mapshaper ./boundaries.geo.json snap -clean -o force precision=0.0001 format=geojson ./boundaries.geo.json @@ -21,9 +21,6 @@ jobs: needs: prepare runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - name: Update TopoJSON boundaries run: | sudo npm install -g topojson-server @@ -41,4 +38,4 @@ jobs: commit-message: Update TopoJSON boundaries title: Update TopoJSON boundaries body: Clean and minify GeoJSON and process to TopoJSON - branch: geo-to-topo \ No newline at end of file + branch: geo-to-topo From 587d443a58838de3de5029a52e7d08552553d3ae Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Thu, 28 Jan 2021 20:08:28 +1100 Subject: [PATCH 2/3] Update minify-map-json.yml adjust filepaths --- .github/workflows/minify-map-json.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/minify-map-json.yml b/.github/workflows/minify-map-json.yml index 4b775c9..b0d4db0 100644 --- a/.github/workflows/minify-map-json.yml +++ b/.github/workflows/minify-map-json.yml @@ -16,7 +16,7 @@ jobs: - name: Update GeoJSON boundaries run: | sudo npm install -g mapshaper - mapshaper ./boundaries.geo.json snap -clean -o force precision=0.0001 format=geojson ./boundaries.geo.json + mapshaper boundaries.geo.json snap -clean -o force precision=0.0001 format=geojson boundaries.geo.json process: needs: prepare runs-on: ubuntu-latest @@ -24,7 +24,7 @@ jobs: - name: Update TopoJSON boundaries run: | sudo npm install -g topojson-server - geo2topo ./boundaries.geo.json -q 50000 > ./website/data/boundaries.topo.json + geo2topo boundaries.geo.json -q 50000 > website/data/boundaries.topo.json merge: needs: process runs-on: ubuntu-latest From 1733b0d413aa573930b980bdccbb4e239da34e4d Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Thu, 28 Jan 2021 20:16:39 +1100 Subject: [PATCH 3/3] Update minify-map-json.yml add `uses` --- .github/workflows/minify-map-json.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/minify-map-json.yml b/.github/workflows/minify-map-json.yml index b0d4db0..4dcea08 100644 --- a/.github/workflows/minify-map-json.yml +++ b/.github/workflows/minify-map-json.yml @@ -21,6 +21,9 @@ jobs: needs: prepare runs-on: ubuntu-latest steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Update TopoJSON boundaries run: | sudo npm install -g topojson-server @@ -29,6 +32,9 @@ jobs: needs: process 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