-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 878 Bytes
/
Copy pathmigrations.yml
File metadata and controls
36 lines (30 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: D1 Migrations
on:
push:
branches: [main]
paths:
- "apps/operator/migrations/**"
permissions: {}
concurrency:
group: d1-migrations-${{ github.ref }}
cancel-in-progress: false
jobs:
migrate:
name: apply-migrations
runs-on: ubuntu-latest
timeout-minutes: 10
environment: production
permissions:
contents: read
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
with:
persist-credentials: false
fetch-depth: 1
- name: Setup
uses: ./.github/actions/setup
- name: Apply D1 migrations
run: pnpm --filter @repo/operator exec wrangler d1 migrations apply switch-operator-db --remote
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}