Skip to content

Commit

Permalink
ci: reset cron schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
hewliyang committed Jan 1, 2024
1 parent 5b1d386 commit 964eb60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/scrape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Weekly Scrape

on:
schedule:
- cron: '*/5 * * * *'
- cron: '0 0 * * 1,4' # run on Mon and Thurs

jobs:
scrape:
Expand Down
4 changes: 2 additions & 2 deletions scripts/scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

1 comment on commit 964eb60

@vercel
Copy link

@vercel vercel bot commented on 964eb60 Jan 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.