From 30f5a86dfe59df20e9cd861028bf2e9afc0abfc9 Mon Sep 17 00:00:00 2001 From: LekoArts Date: Tue, 18 Apr 2023 15:51:45 +0200 Subject: [PATCH] chore: use GITHUB_SHA in deploy msg if available --- test/e2e/next-test-lib/next-modes/next-deploy.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/next-test-lib/next-modes/next-deploy.ts b/test/e2e/next-test-lib/next-modes/next-deploy.ts index 611737f443..793f41ea18 100644 --- a/test/e2e/next-test-lib/next-modes/next-deploy.ts +++ b/test/e2e/next-test-lib/next-modes/next-deploy.ts @@ -66,7 +66,8 @@ export class NextDeployInstance extends NextInstance { console.log(`Deploying project at ${this.testDir}`) - const deployRes = await execa('ntl', ['deploy', '--build', '--json', '--message', testName], { + const deployTitle = process.env.GITHUB_SHA ? `${testName} - ${process.env.GITHUB_SHA}` : testName + const deployRes = await execa('ntl', ['deploy', '--build', '--json', '--message', deployTitle], { cwd: this.testDir, reject: false, env: {