From cfb3842c63751e60af2286c993a6dbbf238d8834 Mon Sep 17 00:00:00 2001 From: Julian Date: Thu, 14 Sep 2023 16:02:01 +0200 Subject: [PATCH] fix: We stopped reporting commit/version --- src/main.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.ts b/src/main.ts index bd75607..cc08ffc 100644 --- a/src/main.ts +++ b/src/main.ts @@ -119,14 +119,14 @@ class TestReporter { try { const readStream = input.trxZip.toBuffer() - const version = fs.existsSync('src/EVA.TestSuite.Core/bin/Release/version.txt') - ? fs.readFileSync('src/EVA.TestSuite.Core/bin/Release/version.txt').toString() + const version = fs.existsSync('test/EVA.TestSuite.Core/bin/Release/version.txt') + ? fs.readFileSync('test/EVA.TestSuite.Core/bin/Release/version.txt').toString() : null - const commitID = fs.existsSync('src/EVA.TestSuite.Core/bin/Release/commit.txt') - ? fs.readFileSync('src/EVA.TestSuite.Core/bin/Release/commit.txt').toString() + const commitID = fs.existsSync('test/EVA.TestSuite.Core/bin/Release/commit.txt') + ? fs.readFileSync('test/EVA.TestSuite.Core/bin/Release/commit.txt').toString() : null - core.info(`Using EVA version ${version}, commit ${commitID}, current directory: ${cwd()}`) + core.info(`Using EVA version ${version}, commit ${commitID}, branch ${this.context.branch}, current directory: ${cwd()}`) const post = bent(this.resultsEndpoint, 'POST', {}, 200) await post(