Skip to content

Commit 63dd9f8

Browse files
committed
Add temporary Cloudflare preview URL override for testing
TEMPORARY: Using PR #1607's preview URL since Cloudflare doesn't build in forks This should only be applied to fork's main branch for testing
1 parent e0b9912 commit 63dd9f8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/pr-preview-links-on-comment.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,14 @@ jobs:
124124
return '';
125125
}
126126
127+
// TEMPORARY OVERRIDE FOR TESTING - Remove before production
128+
const testingOverride = 'https://1607.docs-14y.pages.dev';
129+
if (testingOverride) {
130+
core.warning(`Using temporary testing override URL: ${testingOverride}`);
131+
core.setOutput('branch_url', testingOverride);
132+
return;
133+
}
134+
127135
const branchUrl = extractBranchPreviewUrl(context.payload.comment.body);
128136
core.info(`Extracted Branch Preview URL: ${branchUrl}`);
129137
core.setOutput('branch_url', branchUrl);

.github/workflows/pr-preview-links.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,14 @@ jobs:
217217
core.warning('Branch Preview URL not found within 2 minutes. Links will be added when Cloudflare comment triggers update workflow.');
218218
return '';
219219
}
220+
// TEMPORARY OVERRIDE FOR TESTING - Remove before production
221+
const testingOverride = 'https://1607.docs-14y.pages.dev';
222+
if (testingOverride) {
223+
core.warning(`Using temporary testing override URL: ${testingOverride}`);
224+
core.setOutput('base', testingOverride);
225+
return;
226+
}
227+
220228
let base = await waitForCloudflareBranchUrl();
221229
if (!base) base = await fromOurExistingComment();
222230
core.info(`Branch Preview URL found: ${base || '(not yet)'}`);

0 commit comments

Comments
 (0)