Update close-on-invalid-label.yaml
This commit is contained in:
@@ -23,7 +23,7 @@ jobs:
|
||||
run: gh issue close ${{ github.event.issue.html_url }}
|
||||
|
||||
- name: Close PR
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
if: ${{ github.event_name == 'pull_request_target' }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: gh pr close ${{ github.event.pull_request.html_url }}
|
||||
run: gh pr close ${{ github.event.pull_request_target.html_url }}
|
||||
|
||||
Reference in New Issue
Block a user