Skip to content

Update avmap.io Data #7

Update avmap.io Data

Update avmap.io Data #7

Workflow file for this run

name: Update avmap.io Data
on:
push:
branches: [main]
paths:
- 'events.csv'
- 'geometries/**'
# Allow manual trigger
workflow_dispatch:
jobs:
update-avmap-data:
runs-on: ubuntu-latest
steps:
- name: Checkout av-map-data
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: pip install -r requirements-dev.txt
- name: Validate Data
run: python3 scripts/validate.py
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Trigger avmap.io Rebuild
run: |
# Option 1: Repository dispatch to trigger avmap.io rebuild
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.AVMAP_IO_TOKEN }}" \
https://api.github.com/repos/jacksonlester/avmap.io/dispatches \
-d '{"event_type":"data_updated","client_payload":{"source":"av-map-data","trigger":"${{ github.event.head_commit.message }}"}}'