Repository navigation
Backfill Content from Transcripts #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' }} |