Skip to content

Fetch Static GTFS Data #201

Fetch Static GTFS Data

Fetch Static GTFS Data #201

name: Fetch Static GTFS Data
on:
schedule:
- cron: "*/5 * * * *"
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Build
working-directory: ./Scripts
run: swift FetchStaticData.swift
- name: Print output
working-directory: ./Scripts
run: more Trips.csv
- name: Upload to R2
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: r2 object put choochoo/Trips.csv --file=./Scripts/Trips.csv