Skip to content

Commit 8c9c377

Browse files
authored
Merge pull request #740 from CodingCatDev/feat/podcast-provider-links
feat(podcast): sync Spotify & provider listenLinks and show host logos on site & Agent AJ
2 parents c2f53fb + 5a5bce9 commit 8c9c377

13 files changed

Lines changed: 1367 additions & 74 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Sync Missing Podcast Provider Links
2+
3+
on:
4+
schedule:
5+
- cron: "0 7 * * *" # Run daily at 7:00 AM UTC
6+
workflow_dispatch:
7+
inputs:
8+
dataset:
9+
description: "Target Sanity Dataset"
10+
required: true
11+
default: "production"
12+
type: choice
13+
options:
14+
- production
15+
- dev
16+
batch_size:
17+
description: "Batch size (number of podcasts to process in this run)"
18+
required: true
19+
default: "250"
20+
type: string
21+
22+
jobs:
23+
sync-podcast-links:
24+
runs-on: ubuntu-latest
25+
environment: production
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- uses: pnpm/action-setup@v4
31+
32+
- uses: actions/setup-node@v4
33+
with:
34+
node-version-file: ".nvmrc"
35+
cache: "pnpm"
36+
37+
- name: Install dependencies
38+
run: pnpm install --frozen-lockfile
39+
40+
- name: Run Missing Podcast Provider Links Sync
41+
run: |
42+
pnpm exec sanity functions test sync-missing-podcast-links --dataset ${{ inputs.dataset || 'production' }}
43+
env:
44+
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_AUTH_TOKEN }}
45+
SANITY_API_WRITE_TOKEN: ${{ secrets.SANITY_API_WRITE_TOKEN }}
46+
SANITY_STUDIO_PROJECT_ID: ${{ vars.SANITY_STUDIO_PROJECT_ID }}
47+
SANITY_STUDIO_DATASET: ${{ inputs.dataset || 'production' }}
48+
SYNC_BATCH_SIZE: ${{ inputs.batch_size || '250' }}

‎apps/sanity/extract.json‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7743,6 +7743,20 @@
77437743
},
77447744
"optional": true
77457745
},
7746+
"castbox": {
7747+
"type": "objectAttribute",
7748+
"value": {
7749+
"type": "string"
7750+
},
7751+
"optional": true
7752+
},
7753+
"castro": {
7754+
"type": "objectAttribute",
7755+
"value": {
7756+
"type": "string"
7757+
},
7758+
"optional": true
7759+
},
77467760
"rss": {
77477761
"type": "objectAttribute",
77487762
"value": {

0 commit comments

Comments
 (0)