cloudflare / wrangler-action

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

Support version preview urls in Cloudflare workers #302

Open Phoenixmatrix opened 1 month ago

Phoenixmatrix commented 1 month ago

Cloudflare Workers now support preview urls similar to Cloudflare Pages. Unfortunately wrangler's output for those is slightly different than the output from Pages, so the regex doesn't catch it to store in deployment-url.

Example of Wrangler's output:

Version Preview URL: https://an21s8iyi-worker-test.mydomain.workers.dev/

Without that, it's difficult to get access to the url in a version preview (it's available in the output, but its tough to capture it to use elsewhere in my GitHub action).

nprogers commented 1 week ago

We can pull this from wrangler artifacts. https://github.com/cloudflare/workers-sdk/issues/7240

jahands commented 5 days ago

Blocked on https://github.com/cloudflare/workers-sdk/issues/7240