Skip to content

πŸ†• Update

πŸ†• Update #1215

Workflow file for this run

name: πŸ†• Update
on:
schedule:
- cron: "15 0 * * *"
workflow_dispatch:
permissions:
actions: write
contents: read
jobs:
update-episodes:
name: ⬣ Update Episodes
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: βŽ” Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: πŸ“₯ Download deps
run: npm ci
# We need to manually bump libsql here as otherwise
# the script will hang in the Github Action. The normal
# queries from the website work. We can't update generally
# as otherwise this breaks the deployment on Vercel.
- name: πŸ“₯ Temp - Fix libsql deps
run: npm install @libsql/[email protected] @prisma/[email protected]
- name: ✨ Update Episodes
run: npm run update:episodes
env:
NODE_ENV: production
TURSO_DATABASE_URL: ${{ secrets.TURSO_DATABASE_URL }}
TURSO_AUTH_TOKEN: ${{ secrets.TURSO_AUTH_TOKEN }}
update-info:
name: ⬣ Update Episode Info
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: βŽ” Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: πŸ“₯ Download deps
run: npm ci
# We need to manually bump libsql here as otherwise
# the script will hang in the Github Action. The normal
# queries from the website work. We can't update generally
# as otherwise this breaks the deployment on Vercel.
- name: πŸ“₯ Temp - Fix libsql deps
run: npm install @libsql/[email protected] @prisma/[email protected]
- name: ✨ Update Episode Info
run: npm run update:episodes:info
env:
NODE_ENV: production
TURSO_DATABASE_URL: ${{ secrets.TURSO_DATABASE_URL }}
TURSO_AUTH_TOKEN: ${{ secrets.TURSO_AUTH_TOKEN }}