-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.91 KB
/
Copy pathsync.yml
File metadata and controls
57 lines (48 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Sync Berkeley classes to Supabase
on:
schedule:
- cron: '0 9 * * *'
workflow_dispatch:
jobs:
sync-and-push:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.26.x'
- name: Build berkeley-classes
run: go build -o berkeley-classes ./cmd/berkeley-classes
- name: Sync every Fall 2026 section
# Walking the whole term in one search (~290 pages of 20 sections each)
# captures every department, not just the previously hand-picked 16 —
# critical for breadth filter coverage.
run: ./berkeley-classes sync --term 'Fall 2026' --max-pages 400
- name: Push to Supabase
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_SERVICE_KEY: ${{ secrets.SUPABASE_SERVICE_KEY }}
run: ./berkeley-classes push --with-snapshots
- name: Ingest course meta from Berkeleytime
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_SERVICE_KEY: ${{ secrets.SUPABASE_SERVICE_KEY }}
continue-on-error: true
run: ./berkeley-classes ingest-meta --concurrency 4
- name: Ingest breadth requirements from classes.berkeley.edu
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_SERVICE_KEY: ${{ secrets.SUPABASE_SERVICE_KEY }}
continue-on-error: true
run: ./berkeley-classes ingest-breadths --term-id 8588
- name: Notify watch subscribers
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_SERVICE_KEY: ${{ secrets.SUPABASE_SERVICE_KEY }}
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
NOTIFY_FROM_EMAIL: ${{ vars.NOTIFY_FROM_EMAIL }}
NOTIFY_BASE_URL: ${{ vars.NOTIFY_BASE_URL }}
run: ./berkeley-classes notify