workflows/triage: fix handling outdated PRs

This commit is contained in:
Rylan Polster 2020-12-27 14:24:55 -05:00
parent bcbf5857da
commit 9037967444

View File

@ -28,7 +28,7 @@ jobs:
- name: Review pull request
if: >
(github.event_name == 'pull_request' || github.event_name == 'pull_request_target') &&
github.event.action != 'closed'
github.event.action != 'closed' && github.event.pull_request.state != 'closed'
uses: actions/github-script@v3
with:
github-token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}