π Update #1214
This file contains 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: π 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 }} |