Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.

Commit 1ec2a10

Browse files
committed
feat: Supporting pull_request_target
1 parent 9daabe6 commit 1ec2a10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import github from '@actions/github'
99
import main from './lib/index.js'
1010

1111
// exit early
12-
if (github.context.eventName !== 'pull_request') {
12+
if (!['pull_request_target', 'pull_request'].includes(github.context.eventName)) {
1313
core.error('action triggered outside of a pull_request')
1414
process.exit(1)
1515
}

0 commit comments

Comments
 (0)