mirror of
https://github.com/codecov/codecov-action.git
synced 2026-04-05 14:09:25 +00:00
fix: isPullRequestFromFork returns false for any PR (#1437)
* fix: isPullRequestFromFork returns false for any PR * fix: add log statement * fix: force set token * fix: pass in empty string * fix: bump version * fix: revert to promise * fix: revert changes --------- Co-authored-by: Tom Hu <thomas.hu@sentry.io>
This commit is contained in:
parent
59fc46f14a
commit
c9dbf6a905
4 changed files with 8 additions and 6 deletions
|
|
@ -30,8 +30,9 @@ const getGitService = (): string => {
|
|||
};
|
||||
|
||||
const isPullRequestFromFork = (): boolean => {
|
||||
core.info(`evenName: ${context.eventName}`);
|
||||
if (
|
||||
`${context.eventName}` !== 'pull_request' ||
|
||||
`${context.eventName}` !== 'pull_request' &&
|
||||
`${context.eventName}` !== 'pull_request_target'
|
||||
) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue