Skip to content

.github/workflows/cron.yaml #2395

.github/workflows/cron.yaml

.github/workflows/cron.yaml #2395

Workflow file for this run

on:
schedule:
- cron: "0 7 * * *"
- cron: "5/5 7 * * *"
jobs:
crawl:
runs-on: ubuntu-latest
if: github.event.schedule == '0 7 * * *'
steps:
- name: Trigger Crawl Monday
run: curl https://schnitzellunch.se/api/restaurants-recrawl?weekDay=1
- name: Trigger Crawl Tuesday
run: curl https://schnitzellunch.se/api/restaurants-recrawl?weekDay=2
- name: Trigger Crawl Wednesday
run: curl https://schnitzellunch.se/api/restaurants-recrawl?weekDay=3
- name: Trigger Crawl Thursday
run: curl https://schnitzellunch.se/api/restaurants-recrawl?weekDay=4
- name: Trigger Crawl Friday
run: curl https://schnitzellunch.se/api/restaurants-recrawl?weekDay=5
- name: Trigger Crawl Saturday
run: curl https://schnitzellunch.se/api/restaurants-recrawl?weekDay=6
- name: Trigger Crawl Sunday
run: curl https://schnitzellunch.se/api/restaurants-recrawl?weekDay=7
geocode:
runs-on: ubuntu-latest
if: github.event.schedule == '5/5 7 * * *'
steps:
- name: Geocode Addresses
run: curl https://schnitzellunch.se/api/geocode