mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-09 12:37:26 +00:00
simplify conditional logic
This commit is contained in:
parent
ccab10f482
commit
5694bb02fe
1 changed files with 1 additions and 5 deletions
|
|
@ -32,11 +32,7 @@ const getGitService = (): string => {
|
||||||
|
|
||||||
const isPullRequestFromFork = (): boolean => {
|
const isPullRequestFromFork = (): boolean => {
|
||||||
core.info(`evenName: ${context.eventName}`);
|
core.info(`evenName: ${context.eventName}`);
|
||||||
if (
|
if (!['pull_request', 'pull_request_target'].includes(context.eventName)) {
|
||||||
['pull_request', 'pull_request_target'].every(
|
|
||||||
(event) => event !== context.eventName,
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue