diff --git a/.github/workflows/scrape.yml b/.github/workflows/scrape.yml index 4cb6087..ecf5224 100644 --- a/.github/workflows/scrape.yml +++ b/.github/workflows/scrape.yml @@ -2,7 +2,7 @@ name: Weekly Scrape on: schedule: - - cron: '*/5 * * * *' + - cron: '0 0 * * 1,4' # run on Mon and Thurs jobs: scrape: diff --git a/scripts/scrape.py b/scripts/scrape.py index 345fa95..75cb7f8 100644 --- a/scripts/scrape.py +++ b/scripts/scrape.py @@ -20,10 +20,10 @@ } if not url: - raise ValueError("NEXTBUS_API_URL secret not defined") + raise ValueError("`NEXTBUS_API_URL` secret not defined") if not os.getenv("NEXTBUS_BASIC_AUTH"): - raise ValueError("NEXTBUS_BASIC_AUTH secret not defined") + raise ValueError("`NEXTBUS_BASIC_AUTH` secret not defined") RouteLiterals = Literal["A1", "A2", "D1", "D2", "BTC", "E", "K", "L"]