public_library_map/minify-map-json.yml at main · hughrun/public_library_map · GitHub Skip to content Sign up Why GitHub? Features → Mobile → Actions → Codespaces → Packages → Security → Code review → Project management → Integrations → GitHub Sponsors → Customer stories → Security → Team Enterprise Explore Explore GitHub → Learn & contribute Topics → Collections → Trending → Learning Lab → Open source guides → Connect with others The ReadME Project → Events → Community forum → GitHub Education → GitHub Stars program → Marketplace Pricing Plans → Compare plans → Contact Sales → Nonprofit → Education → In this repository All GitHub ↵ Jump to ↵ No suggested jump to results In this repository All GitHub ↵ Jump to ↵ In this user All GitHub ↵ Jump to ↵ In this repository All GitHub ↵ Jump to ↵ Sign in Sign up {{ message }} hughrun / public_library_map Watch 4 Star 3 Fork 5 Code Issues 13 Pull requests 0 Actions Security Insights More Code Issues Pull requests Actions Security Insights Permalink main public_library_map/.github/workflows/minify-map-json.yml Go to file Go to file T Go to line L Copy path     Cannot retrieve contributors at this time 38 lines (33 sloc) 1.14 KB Raw Blame name: Minify Map JSON on: push: branches: - master - main paths: - 'boundaries.geo.json' workflow_dispatch: jobs: processJson: if: "!contains(github.event.head_commit.message, 'from hughrun/geo-to-topo')" runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - 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 sudo npm install -g topojson-server geo2topo boundaries.geo.json -q 50000 > website/data/boundaries.topo.json python3 ./.github/scripts/merge_csv_to_topojson.py - name: Create Pull Request uses: peter-evans/create-pull-request@v3 with: author: Library Map Bot commit-message: Update TopoJSON boundaries title: Update TopoJSON boundaries body: 'Clean & minify GeoJSON; process to TopoJSON; merge library info csv to topo.' branch: geo-to-topo labels: auto update,data Copy lines Copy permalink View git blame Reference in new issue Go © 2021 GitHub, Inc. Terms Privacy Security Status Docs Contact GitHub Pricing API Training Blog About You can’t perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.