Skip to content

Commit

Permalink
fix: revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed May 20, 2024
1 parent a8a046d commit 4597db2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 6 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
Expand Down Expand Up @@ -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}`);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions src/buildExec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 4597db2

Please sign in to comment.