Skip to content

Regenerate Data

Regenerate Data #1246

name: Regenerate Data
on:
schedule:
- cron: '00 00 * * *'
workflow_dispatch:
jobs:
Regenerate-Data:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn --frozen-lockfile
- run: yarn generate-data
env:
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }}
AIRTABLE_BASE_ID: ${{ vars.AIRTABLE_BASE_ID }}
AIRTABLE_BASE_ID_2: ${{ vars.AIRTABLE_BASE_ID_2 }}
TMDB_API_KEY: ${{ secrets.TMDB_API_KEY }}
- run: yarn process-data
- uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: src/data/processed-movies.json
commit_author: Ben Bot <actions@github.com>