Skip to content

Sync

Sync #90

Workflow file for this run

name: Sync
on:
schedule:
- cron: '5 15 * * 5' # at 05:05am on Saturday NZST
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: ⏬ Checkout code
uses: actions/checkout@v3
- name: 🔢 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: ⏬ Install
run: |
npm install
- name: 🌏 Download planet file extract
run: |
yarn download-planet
- name: 🥝 Download LINZ csv file
run: |
yarn download-linz
env:
LINZ_API_KEY: ${{ secrets.LINZ_API_KEY }}
STATS_NZ_API_KEY: ${{ secrets.STATS_NZ_API_KEY }}
- name: ⏩ Download list of addresses to ignore
run: |
yarn preprocess0
- name: 🚚 Preprocess the .osm.pbf file
run: |
yarn preprocess1
- name: 🚚 Preprocess the .csv file
run: |
yarn preprocess2
- name: 🚚 Creates stacks from LINZ data
run: |
yarn preprocess3
- name: 🔁 Conflate LINZ data with OSM
run: |
yarn conflate
- name: 🏡 Generate geojson and reports
run: |
yarn action
env:
MAX_ITEMS_PER_DATASET: ${{ secrets.MAX_ITEMS_PER_DATASET }}
- name: ⛅ Upload geojson and reports to CDN
run: |
yarn upload
env:
GH_BASIC_AUTH: ${{ secrets.GH_BASIC_AUTH }}
AZ_CON: ${{ secrets.AZ_CON }}