From 923db6f87f63a371507326573fd33b2970c30048 Mon Sep 17 00:00:00 2001 From: Alexandre Pereira Date: Fri, 17 Jan 2025 11:30:50 +0000 Subject: [PATCH 1/2] fix: pages github deployment not triggering due to missing pages artifact stages --- src/service/github.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/service/github.ts b/src/service/github.ts index a4f88040..8faa674d 100644 --- a/src/service/github.ts +++ b/src/service/github.ts @@ -92,8 +92,7 @@ export async function createGitHubDeploymentAndJobSummary( config.GITHUB_TOKEN && pagesArtifactFields.production_branch && pagesArtifactFields.pages_project && - pagesArtifactFields.deployment_trigger && - pagesArtifactFields.stages + pagesArtifactFields.deployment_trigger ) { const octokit = getOctokit(config.GITHUB_TOKEN); await Promise.all([ From e819570b2d0a69816a1c2e9d2f2954e278748d80 Mon Sep 17 00:00:00 2001 From: Maximo Guk <62088388+Maximo-Guk@users.noreply.github.com> Date: Fri, 17 Jan 2025 09:31:23 -0600 Subject: [PATCH 2/2] Remove stages from pages-deploy-detailed artifact and add changeset --- .changeset/tiny-pillows-return.md | 5 +++++ src/wranglerArtifactManager.ts | 24 ------------------------ 2 files changed, 5 insertions(+), 24 deletions(-) create mode 100644 .changeset/tiny-pillows-return.md diff --git a/.changeset/tiny-pillows-return.md b/.changeset/tiny-pillows-return.md new file mode 100644 index 00000000..3bb9b5b6 --- /dev/null +++ b/.changeset/tiny-pillows-return.md @@ -0,0 +1,5 @@ +--- +"wrangler-action": patch +--- + +fix: Pages GitHub Deployment not triggering diff --git a/src/wranglerArtifactManager.ts b/src/wranglerArtifactManager.ts index 2d7f7fb1..a6b144d7 100644 --- a/src/wranglerArtifactManager.ts +++ b/src/wranglerArtifactManager.ts @@ -17,30 +17,6 @@ const OutputEntryPagesDeployment = OutputEntryBase.merge( // optional, added in wrangler@3.89.0 production_branch: z.string().optional(), // optional, added in wrangler@3.89.0 - stages: z - .array( - z.object({ - name: z.enum([ - "queued", - "initialize", - "clone_repo", - "build", - "deploy", - ]), - status: z.enum([ - "idle", - "active", - "canceled", - "success", - "failure", - "skipped", - ]), - started_on: z.string().nullable(), - ended_on: z.string().nullable(), - }), - ) - .optional(), - // optional, added in wrangler@3.89.0 deployment_trigger: z .object({ metadata: z.object({