.github/workflows/cron.yaml #3220
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |