From e26e7826068edd7ad2659a4a2ea74397dcdd1ea6 Mon Sep 17 00:00:00 2001 From: Timothee Guerin Date: Thu, 21 Sep 2023 14:15:43 -0700 Subject: [PATCH] Fix website pr url (#2465) - Fixes Azure/typespec-azure#3601 --- .github/workflows/tryit-comment.yml | 2 +- eng/pipelines/pr-tryit.yml | 4 ---- eng/scripts/create-tryit-comment.js | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tryit-comment.yml b/.github/workflows/tryit-comment.yml index b94778efa7..e75184be02 100644 --- a/.github/workflows/tryit-comment.yml +++ b/.github/workflows/tryit-comment.yml @@ -30,7 +30,7 @@ jobs: `Changes in this PR will be published to the following url to try(check status of TypeSpec Pull Request Try It pipeline for publish status):`, `Playground: https://cadlplayground.z22.web.core.windows.net/prs/${prNumber}/`, "", - `Website: https://tspwebsitepr.z5.web.core.windows.net/prs/${prNumber}/`, + `Website: https://tspwebsitepr.z22.web.core.windows.net/prs/${prNumber}/`, ].join("\n") }) diff --git a/eng/pipelines/pr-tryit.yml b/eng/pipelines/pr-tryit.yml index 76593f6003..4266c99e27 100644 --- a/eng/pipelines/pr-tryit.yml +++ b/eng/pipelines/pr-tryit.yml @@ -50,7 +50,3 @@ jobs: --destination-path $(TYPESPEC_WEBSITE_BASE_PATH) \ --source "./packages/website/build/" \ --overwrite - - - script: node eng/scripts/create-tryit-comment.js - displayName: Check already commented - continueOnError: true # Setting this in case this starts working again diff --git a/eng/scripts/create-tryit-comment.js b/eng/scripts/create-tryit-comment.js index ad4e87bd1b..641bc94802 100644 --- a/eng/scripts/create-tryit-comment.js +++ b/eng/scripts/create-tryit-comment.js @@ -44,7 +44,7 @@ async function main() { ``, `You can try these changes at https://cadlplayground.z22.web.core.windows.net${folderName}/prs/${prNumber}/`, "", - `Check the website changes at https://tspwebsitepr.z5.web.core.windows.net${folderName}/prs/${prNumber}/`, + `Check the website changes at https://tspwebsitepr.z22.web.core.windows.net${folderName}/prs/${prNumber}/`, ].join("\n"); await writeComment(repo, prNumber, comment, ghAuth); }