Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/commandOutputParsing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ function handleVersionsUploadOutputEntry(
versionsOutputEntry: OutputEntryVersionUpload,
) {
setOutput("deployment-url", versionsOutputEntry.preview_url);
setOutput("deployment-alias-url", versionsOutputEntry.preview_alias_url);
Comment thread
dario-piotrowicz marked this conversation as resolved.
}

/**
Expand Down
3 changes: 2 additions & 1 deletion src/wranglerArtifactManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ describe("wranglerArtifactsManager", () => {
testOutputDir: {
"wrangler-output-2024-10-17_18-48-40_463-2e6e83.json": `
{"version": 1, "type":"wrangler-session", "wrangler_version":"3.81.0", "command_line_args":["what's up"], "log_file_path": "/here"}
{"version": 1, "type":"version-upload", "preview_url": "https://example.com"}`,
{"version": 1, "type":"version-upload", "preview_url": "https://example.com", "preview_alias_url":"https://example.alias"}`,
"not-wrangler-output.json": "test",
},
});
Expand All @@ -155,6 +155,7 @@ describe("wranglerArtifactsManager", () => {
version: 1,
type: "version-upload",
preview_url: "https://example.com",
preview_alias_url: "https://example.alias",
});
}),
it("Skips artifact entries that are not parseable", async () => {
Expand Down
1 change: 1 addition & 0 deletions src/wranglerArtifactManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const OutputEntryVersionUpload = OutputEntryBase.merge(
type: z.literal("version-upload"),
/** The preview URL associated with this version upload */
preview_url: z.string().optional(),
preview_alias_url: z.string().optional(),
}),
);

Expand Down