Skip to content

Backfill Content from Transcripts #1

Backfill Content from Transcripts

Backfill Content from Transcripts #1

name: Backfill Content from Transcripts
on:
workflow_dispatch:
inputs:
dataset:
description: "Target Sanity Dataset"
required: true
default: "production"
type: choice
options:
- production
- dev
jobs:
backfill:
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: Execute Content Backfill Script
run: |
node scripts/backfill-content-from-transcripts.mjs
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 || 'hfh83o0w' }}
SANITY_STUDIO_DATASET: ${{ inputs.dataset || 'production' }}