mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-21 17:43:23 +01:00
properly check for pages deployments
This commit is contained in:
parent
97c920b38e
commit
ca0bf5eeba
1 changed files with 5 additions and 1 deletions
|
@ -269,7 +269,11 @@ async function wranglerCommands() {
|
||||||
setOutput("command-stderr", stdErr);
|
setOutput("command-stderr", stdErr);
|
||||||
|
|
||||||
// Check if this command is a workers or pages deployment
|
// Check if this command is a workers or pages deployment
|
||||||
if (command.startsWith("deploy") || command.startsWith("publish")) {
|
if (
|
||||||
|
command.startsWith("deploy") ||
|
||||||
|
command.startsWith("publish") ||
|
||||||
|
command.startsWith("pages publish")
|
||||||
|
) {
|
||||||
// If this is a workers or pages deployment, try to extract the deployment URL
|
// If this is a workers or pages deployment, try to extract the deployment URL
|
||||||
let deploymentUrl = "";
|
let deploymentUrl = "";
|
||||||
const deploymentUrlMatch = stdOut.match(/https?:\/\/[a-zA-Z0-9-\.\/]+/);
|
const deploymentUrlMatch = stdOut.match(/https?:\/\/[a-zA-Z0-9-\.\/]+/);
|
||||||
|
|
Loading…
Reference in a new issue