mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 20:27:02 +08:00
output context
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -59564,6 +59564,7 @@ var buildExec = function () {
|
|||||||
envVarsArg.push(envVarClean);
|
envVarsArg.push(envVarClean);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log(context);
|
||||||
if (token) {
|
if (token) {
|
||||||
options.env.CODECOV_TOKEN = token;
|
options.env.CODECOV_TOKEN = token;
|
||||||
}
|
}
|
||||||
@@ -59626,6 +59627,7 @@ var buildExec = function () {
|
|||||||
execArgs.push('-C', "" + overrideCommit);
|
execArgs.push('-C', "" + overrideCommit);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
// attempt commit detection
|
||||||
execArgs.push('-C', "" + context.sha);
|
execArgs.push('-C', "" + context.sha);
|
||||||
}
|
}
|
||||||
if (overridePr) {
|
if (overridePr) {
|
||||||
|
|||||||
@@ -71,6 +71,8 @@ const buildExec = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(context);
|
||||||
|
|
||||||
if (token) {
|
if (token) {
|
||||||
options.env.CODECOV_TOKEN = token;
|
options.env.CODECOV_TOKEN = token;
|
||||||
}
|
}
|
||||||
@@ -132,6 +134,7 @@ const buildExec = () => {
|
|||||||
if (overrideCommit) {
|
if (overrideCommit) {
|
||||||
execArgs.push('-C', `${overrideCommit}`);
|
execArgs.push('-C', `${overrideCommit}`);
|
||||||
} else {
|
} else {
|
||||||
|
// attempt commit detection
|
||||||
execArgs.push('-C', `${context.sha}`);
|
execArgs.push('-C', `${context.sha}`);
|
||||||
}
|
}
|
||||||
if (overridePr) {
|
if (overridePr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user