output context

This commit is contained in:
Tom Hu
2021-03-08 19:03:49 -05:00
parent 71a6279758
commit ddfe212d72
2 changed files with 5 additions and 0 deletions

2
dist/index.js vendored
View File

@@ -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) {

View File

@@ -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) {