mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-15 15:31:44 +00:00
Do commit SHA edit for pull_request*
This commit is contained in:
parent
ddfe212d72
commit
e77dab65bf
2 changed files with 8 additions and 6 deletions
6
dist/index.js
vendored
6
dist/index.js
vendored
|
|
@ -59626,9 +59626,9 @@ var buildExec = function () {
|
||||||
if (overrideCommit) {
|
if (overrideCommit) {
|
||||||
execArgs.push('-C', "" + overrideCommit);
|
execArgs.push('-C', "" + overrideCommit);
|
||||||
}
|
}
|
||||||
else {
|
else if ("" + context.eventName == 'pull_request' ||
|
||||||
// attempt commit detection
|
"" + context.eventName == 'pull_request_target') {
|
||||||
execArgs.push('-C', "" + context.sha);
|
execArgs.push('-C', "" + context.event.pull_request.head.sha);
|
||||||
}
|
}
|
||||||
if (overridePr) {
|
if (overridePr) {
|
||||||
execArgs.push('-P', "" + overridePr);
|
execArgs.push('-P', "" + overridePr);
|
||||||
|
|
|
||||||
|
|
@ -133,9 +133,11 @@ const buildExec = () => {
|
||||||
}
|
}
|
||||||
if (overrideCommit) {
|
if (overrideCommit) {
|
||||||
execArgs.push('-C', `${overrideCommit}`);
|
execArgs.push('-C', `${overrideCommit}`);
|
||||||
} else {
|
} else if (
|
||||||
// attempt commit detection
|
`${context.eventName}` == 'pull_request' ||
|
||||||
execArgs.push('-C', `${context.sha}`);
|
`${context.eventName}` == 'pull_request_target'
|
||||||
|
) {
|
||||||
|
execArgs.push('-C', `${context.event.pull_request.head.sha}`);
|
||||||
}
|
}
|
||||||
if (overridePr) {
|
if (overridePr) {
|
||||||
execArgs.push('-P', `${overridePr}`);
|
execArgs.push('-P', `${overridePr}`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue