Skip to content

Commit

Permalink
Update close-on-invalid-label.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramya Parimi authored Sep 14, 2021
1 parent 17fcd4f commit 88feefd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/close-on-invalid-label.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 88feefd

Please sign in to comment.