Skip to content

Commit

Permalink
properly check for pages deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Dec 8, 2023
1 parent 97c920b commit ca0bf5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,11 @@ async function wranglerCommands() {
setOutput("command-stderr", stdErr);

// 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
let deploymentUrl = "";
const deploymentUrlMatch = stdOut.match(/https?:\/\/[a-zA-Z0-9-\.\/]+/);
Expand Down

0 comments on commit ca0bf5e

Please sign in to comment.