Skip to content

Commit

Permalink
feat: allow pull_request_target
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Nassri authored Mar 10, 2021
1 parent 5f5eac9 commit 2aef6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import github from '@actions/github'
import main from './lib/index.js'

// exit early
if (github.context.eventName !== 'pull_request') {
if (!['pull_request_target', 'pull_request'].includes(github.context.eventName)) {
core.error('action triggered outside of a pull_request')
process.exit(1)
}
Expand Down

0 comments on commit 2aef6bb

Please sign in to comment.