Skip to content

append air quality data data every 30 mins #11949

append air quality data data every 30 mins

append air quality data data every 30 mins #11949

Workflow file for this run

name: append air quality data data every 30 mins
on:
push:
workflow_dispatch:
schedule:
- cron: '*/30 * * * *'
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Check out this repo
uses: actions/checkout@v4
- name: append new air quality data
run: |-
curl \
-H "Authorization: Bearer ${{ secrets.DATASOURCE_TOKEN }}" \
-X POST "https://api.tinybird.co/v0/datasources?mode=append&name=air_quality_csv" \
-d url='https://valencia.opendatasoft.com/api/explore/v2.1/catalog/datasets/estacions-contaminacio-atmosferiques-estaciones-contaminacion-atmosfericas/exports/csv?timezone=UTC&use_labels=false&delimiter=%2C'