mirror of
https://github.com/codecov/codecov-action.git
synced 2026-04-12 17:10:05 +00:00
fix: force set token
This commit is contained in:
parent
52bd105ad4
commit
70a4cf0e19
3 changed files with 7 additions and 19 deletions
|
|
@ -99,9 +99,7 @@ const buildCommitExec = async (): Promise<{
|
|||
});
|
||||
|
||||
|
||||
if (token) {
|
||||
commitOptions.env.CODECOV_TOKEN = token;
|
||||
}
|
||||
commitOptions.env.CODECOV_TOKEN = token;
|
||||
if (commitParent) {
|
||||
commitExecArgs.push('--parent-sha', `${commitParent}`);
|
||||
}
|
||||
|
|
@ -188,9 +186,7 @@ const buildReportExec = async (): Promise<{
|
|||
});
|
||||
|
||||
|
||||
if (token) {
|
||||
reportOptions.env.CODECOV_TOKEN = token;
|
||||
}
|
||||
reportOptions.env.CODECOV_TOKEN = token;
|
||||
reportExecArgs.push('--git-service', `${gitService}`);
|
||||
|
||||
if (overrideCommit) {
|
||||
|
|
@ -285,9 +281,7 @@ const buildUploadExec = async (): Promise<{
|
|||
envVarsArg.push(envVarClean);
|
||||
}
|
||||
}
|
||||
if (token) {
|
||||
uploadOptions.env.CODECOV_TOKEN = token;
|
||||
}
|
||||
uploadOptions.env.CODECOV_TOKEN = token;
|
||||
if (disableFileFixes) {
|
||||
uploadExecArgs.push('--disable-file-fixes');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue