diff --git a/api/controllers/v2/github.ts b/api/controllers/v2/github.ts index 2328acf58..a5c2b855d 100644 --- a/api/controllers/v2/github.ts +++ b/api/controllers/v2/github.ts @@ -174,14 +174,6 @@ 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'); @@ -189,7 +181,7 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr statusCode: 202, headers: { 'Content-Type': 'text/plain' }, body: - 'Build on branch' + + 'Build on branch ' + body.workflow_run.head_branch + ' will not trigger site deployments as it was not on master branch in upstream repo', };