Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/sync-missing-podcast-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Sync Missing Podcast Provider Links

on:
schedule:
- cron: "0 7 * * *" # Run daily at 7:00 AM UTC
workflow_dispatch:
inputs:
dataset:
description: "Target Sanity Dataset"
required: true
default: "production"
type: choice
options:
- production
- dev
batch_size:
description: "Batch size (number of podcasts to process in this run)"
required: true
default: "250"
type: string

jobs:
sync-podcast-links:
runs-on: ubuntu-latest
environment: production

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run Missing Podcast Provider Links Sync
run: |
pnpm exec sanity functions test sync-missing-podcast-links --dataset ${{ inputs.dataset || 'production' }}
env:
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_AUTH_TOKEN }}
SANITY_API_WRITE_TOKEN: ${{ secrets.SANITY_API_WRITE_TOKEN }}
SANITY_STUDIO_PROJECT_ID: ${{ vars.SANITY_STUDIO_PROJECT_ID }}
SANITY_STUDIO_DATASET: ${{ inputs.dataset || 'production' }}
SYNC_BATCH_SIZE: ${{ inputs.batch_size || '250' }}
14 changes: 14 additions & 0 deletions apps/sanity/extract.json
Original file line number Diff line number Diff line change
Expand Up @@ -7743,6 +7743,20 @@
},
"optional": true
},
"castbox": {
"type": "objectAttribute",
"value": {
"type": "string"
},
"optional": true
},
"castro": {
"type": "objectAttribute",
"value": {
"type": "string"
},
"optional": true
},
"rss": {
"type": "objectAttribute",
"value": {
Expand Down
Loading
Loading