Skip to content

Scrape latest location GeoJSON #59437

Scrape latest location GeoJSON

Scrape latest location GeoJSON #59437

name: Scrape latest location GeoJSON
on:
push:
workflow_dispatch:
schedule:
- cron: '20,50 * * * *'
jobs:
scheduled:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out this repo
uses: actions/checkout@v2
- name: Fetch latest data
run: |-
curl https://www.givefood.org.uk/api/2/locations/?format=geojson > locations.geojson
- name: Commit and push if it changed
run: |-
git config user.name "Automated"
git config user.email "[email protected]"
git add -A
timestamp=$(date -u)
git commit -m "Latest location GeoJSON data: ${timestamp}" || exit 0
git push