Open qqpann opened 1 month ago
This appears to be throwing errors on Worker deploys, too.
🔑 Uploading secrets...
/usr/local/bin/npx wrangler secret:bulk
⛅️ wrangler 3.78.10 (update available 3.83.0)
----------------------------------------------
▲ [WARNING] `wrangler secret:bulk` is deprecated and will be removed in a future major version.
Please use `wrangler secret bulk` instead, which accepts exactly the same arguments.
🌀 Creating the secrets for the Worker "[redacted]"
Finished processing secrets JSON file:
✨ 0 secrets successfully uploaded
✘ [ERROR] 🚨 3 secrets failed to upload
Using: actions/checkout@v4
& cloudflare/wrangler-action@v3
Does this issue persist if you update the deprecated command and use the latest wrangler version?
Looks like we may need to adjust behavior here to allow setting secrets for Pages, such as with a pages_secrets:
field (or somehow detect if the project is a Pages project before uploading secrets.)
Until then, users can work around this by manually uploading secrets in the Cloudflare dashboard, or locally using wrangler secret put
Aye, that's generally how I've gotten around these with failing Workers deployments. Seems like these deprecated commands come through every now and then through normal usage of the Wrangler CLI so it's hard to know exactly when it breaks...until it does!
https://github.com/cloudflare/wrangler-action/blob/cd8a317efbc7fab418e9bd7092c8643d88c03321/src/index.ts#L251
When the repository is pages directory, it needs to run
Otherwise it will run into the following error: