fix: revert changes

This commit is contained in:
Tom Hu 2024-05-20 18:53:58 +07:00
parent a8a046d6ab
commit 4597db2d36
No known key found for this signature in database
GPG key ID: 79155678363963D2
3 changed files with 13 additions and 5 deletions

8
dist/index.js vendored
View file

@ -32393,7 +32393,9 @@ const buildCommitExec = () => buildExec_awaiter(void 0, void 0, void 0, function
GITHUB_SHA: process.env.GITHUB_SHA,
GITHUB_HEAD_REF: process.env.GITHUB_HEAD_REF || '',
});
commitOptions.env.CODECOV_TOKEN = token;
if (token) {
commitOptions.env.CODECOV_TOKEN = token;
}
if (commitParent) {
commitExecArgs.push('--parent-sha', `${commitParent}`);
}
@ -32460,7 +32462,9 @@ const buildReportExec = () => buildExec_awaiter(void 0, void 0, void 0, function
GITHUB_SHA: process.env.GITHUB_SHA,
GITHUB_HEAD_REF: process.env.GITHUB_HEAD_REF || '',
});
reportOptions.env.CODECOV_TOKEN = token;
if (token) {
reportOptions.env.CODECOV_TOKEN = token;
}
reportExecArgs.push('--git-service', `${gitService}`);
if (overrideCommit) {
reportExecArgs.push('-C', `${overrideCommit}`);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -99,7 +99,9 @@ const buildCommitExec = async (): Promise<{
});
commitOptions.env.CODECOV_TOKEN = token;
if (token) {
commitOptions.env.CODECOV_TOKEN = token;
}
if (commitParent) {
commitExecArgs.push('--parent-sha', `${commitParent}`);
}
@ -186,7 +188,9 @@ const buildReportExec = async (): Promise<{
});
reportOptions.env.CODECOV_TOKEN = token;
if (token) {
reportOptions.env.CODECOV_TOKEN = token;
}
reportExecArgs.push('--git-service', `${gitService}`);
if (overrideCommit) {