diff --git a/find-successful-workflow.js b/find-successful-workflow.js index bc1181f..ca622fe 100644 --- a/find-successful-workflow.js +++ b/find-successful-workflow.js @@ -26,7 +26,7 @@ let BASE_SHA; const HEAD_SHA = execSync(`git rev-parse HEAD`, { encoding: 'utf-8' }); - if (eventName === 'pull_request') { + if (['pull_request','pull_request_target'].includes(eventName)) { BASE_SHA = execSync(`git merge-base origin/${mainBranchName} HEAD`, { encoding: 'utf-8' }); } else { try {