GitHub Actions D1 Migrations

Hello,

i would like to build a github action which deploys the worker to cloudflare and then runs D1 migrations after.

- name: Deploy to Cloudflare Workers
        uses: cloudflare/wrangler-action@v3
        with:
          apiToken: ${{ secrets.CF_API_TOKEN }}
          postCommands: |
            wrangler d1 migrations apply DB-NAME --remote


When i use the snipped above, I get the following logs (image).

Can someone help me?
image.png
Was this page helpful?