-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.08 KB
/
Copy pathbackfill.yml
File metadata and controls
44 lines (38 loc) · 1.08 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
name: Backfill past terms to Supabase
on:
workflow_dispatch: {}
jobs:
backfill:
runs-on: ubuntu-latest
timeout-minutes: 90
strategy:
fail-fast: false
max-parallel: 8
matrix:
term:
- 'Spring 2026'
- 'Fall 2025'
- 'Summer Sessions 2025'
- 'Spring 2025'
- 'Fall 2024'
- 'Summer Sessions 2024'
- 'Spring 2024'
- 'Fall 2023'
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 term
env:
TERM_NAME: ${{ matrix.term }}
run: ./berkeley-classes sync --term "$TERM_NAME" --max-pages 400
- name: Push to Supabase (no snapshots — past term)
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_SERVICE_KEY: ${{ secrets.SUPABASE_SERVICE_KEY }}
run: ./berkeley-classes push