Skip to content

.github/workflows/flat.yml #3155

.github/workflows/flat.yml

.github/workflows/flat.yml #3155

Workflow file for this run

name: data
on:
schedule:
- cron: 0 11,13,15,17 * * *
workflow_dispatch: {}
push:
paths:
- .github/workflows/flat.yml
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Setup deno
uses: denoland/setup-deno@main
with:
deno-version: v1.x
- name: Check out repo
uses: actions/checkout@v2
- name: Fetch data
uses: githubocto/flat@v3
with:
http_url: https://phl.carto.com/api/v2/sql?q=SELECT+*,+ST_Y(the_geom)+AS+lat,+ST_X(the_geom)+AS+lng+FROM+shootings&filename=shootings&format=csv&skipfields=cartodb_id
downloaded_filename: shootings.csv