Skip to content

Request LINZ Export

Request LINZ Export #9

name: Request LINZ Export
on:
schedule:
- cron: '11 11 * * 5' # at 11:11pm on Friday NZST
workflow_dispatch:
jobs:
requestLinzExport:
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: |
yarn
- name: 0️⃣ Request data export from LDS
run: |
yarn request-linz-export
env:
LINZ_API_KEY: ${{ secrets.LINZ_API_KEY }}
STATS_NZ_API_KEY: ${{ secrets.STATS_NZ_API_KEY }}