Skip to content

Migrate

Migrate #2

Workflow file for this run

name: Migrate
on:
check_suite:
types: [completed]
jobs:
migrate:
if: >
github.event.check_suite.conclusion == 'success' &&
github.event.check_suite.head_branch == 'main' &&
github.event.check_suite.app.slug != 'github-actions'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Apply database migrations
run: yarn db:migrate:remote
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}