From 635025b5a94546016a2d93eed128e08abf3d86bd Mon Sep 17 00:00:00 2001 From: anabellabuckvar <41971124+anabellabuckvar@users.noreply.github.com> Date: Mon, 18 Mar 2024 17:03:42 -0400 Subject: [PATCH] DOP-4414 checking main --- api/controllers/v2/github.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/controllers/v2/github.ts b/api/controllers/v2/github.ts index f3d3dca3a..2328acf58 100644 --- a/api/controllers/v2/github.ts +++ b/api/controllers/v2/github.ts @@ -174,6 +174,14 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr ' completed successfully but only Deploy Staging ECS workflow completion will trigger smoke test site deployments', }; + return { + statusCode: 202, + headers: { 'Content-Type': 'text/plain' }, + body: + 'Build on branch' + + body.workflow_run.head_branch + + ' will not trigger site deployments as it was not on master branch in upstream repo', + }; // if the build was not building master, no need for smoke test sites if (body.workflow_run.head_branch != 'main' || body.repository.fork) { console.log('Build was not on master branch in main repo, sites will not deploy as no smoke tests are needed');