fix: add log statement

This commit is contained in:
Tom Hu 2024-05-20 18:35:10 +07:00
parent a250399fa3
commit 52bd105ad4
No known key found for this signature in database
GPG key ID: 79155678363963D2
3 changed files with 4 additions and 2 deletions

3
dist/index.js vendored
View file

@ -32340,7 +32340,8 @@ const getGitService = () => {
return 'github';
};
const isPullRequestFromFork = () => {
if (`${context.eventName}` !== 'pull_request' ||
core.info(`evenName: ${context.eventName}`);
if (`${context.eventName}` !== 'pull_request' &&
`${context.eventName}` !== 'pull_request_target') {
return false;
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -30,6 +30,7 @@ const getGitService = (): string => {
};
const isPullRequestFromFork = (): boolean => {
core.info(`evenName: ${context.eventName}`);
if (
`${context.eventName}` !== 'pull_request' &&
`${context.eventName}` !== 'pull_request_target'