From ddfe212d72c8fdf2978e63be2aa5ee5c7ad05291 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Mon, 8 Mar 2021 19:03:49 -0500 Subject: [PATCH] output context --- dist/index.js | 2 ++ src/buildExec.ts | 3 +++ 2 files changed, 5 insertions(+) diff --git a/dist/index.js b/dist/index.js index c55d05e..98cba2f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -59564,6 +59564,7 @@ var buildExec = function () { envVarsArg.push(envVarClean); } } + console.log(context); if (token) { options.env.CODECOV_TOKEN = token; } @@ -59626,6 +59627,7 @@ var buildExec = function () { execArgs.push('-C', "" + overrideCommit); } else { + // attempt commit detection execArgs.push('-C', "" + context.sha); } if (overridePr) { diff --git a/src/buildExec.ts b/src/buildExec.ts index 9892c40..a9ef741 100644 --- a/src/buildExec.ts +++ b/src/buildExec.ts @@ -71,6 +71,8 @@ const buildExec = () => { } } + console.log(context); + if (token) { options.env.CODECOV_TOKEN = token; } @@ -132,6 +134,7 @@ const buildExec = () => { if (overrideCommit) { execArgs.push('-C', `${overrideCommit}`); } else { + // attempt commit detection execArgs.push('-C', `${context.sha}`); } if (overridePr) {