Skip to content

Commit 2aef6bb

Browse files
author
Ahmad Nassri
authored
feat: allow pull_request_target
1 parent 5f5eac9 commit 2aef6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: action/index.js

+1-1
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)