cloudflare / wrangler-action

🧙‍♀️ easily deploy cloudflare workers applications using wrangler and github actions
Apache License 2.0
1.18k stars 152 forks source link

support name option #203

Open yuki0410-dev opened 11 months ago

yuki0410-dev commented 11 months ago

There are multiple WORKER entry points in my project. (I do not intend to monorepo...) I deployed the command option in cloudflare/wrangler-action@v3 with --name and entry points. (I did not write name and main to share wrangler.toml). However, I got an error where name was not specified in the part where wrangler secret put is executed.

✘ [ERROR] Required Worker name missing. Please specify the Worker name in wrangler.toml, or pass it as an argument with `--name <worker-name>`

I would like to see nameoption formally supported instead of writing it in command.

tmclaugh commented 8 months ago

Ran into this issue as well. We use --name on our deploys to support feature branch deployments without requiring the addition of an environment to the toml file. When we started using secrets it resulted in the wrong function being updated. To workaround this we now dynamically add the environment as a preCommand step. Would like a cleaner solution.

carafelix commented 3 months ago

I would like to see name option formally supported instead of writing it in command.

How would you go about it in the command? I'm running into this same issue