Skip to content

Commit 5627147

Browse files
committed
ci: Fix the migration error
1 parent eeb95a1 commit 5627147

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,10 @@ jobs:
6363
restore-keys: ${{ runner.os }}-cargo-
6464

6565
- name: Run D1 Migrations
66-
uses: cloudflare/wrangler-action@v3
67-
with:
68-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
69-
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
70-
command: d1 migrations apply jakarta-backend --remote
66+
run: npx wrangler d1 migrations apply jakarta-backend --remote
67+
env:
68+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
69+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
7170

7271
- name: Deploy Worker
7372
uses: cloudflare/wrangler-action@v3

0 commit comments

Comments
 (0)