👷 Only run if issue open

This commit is contained in:
Alicia Sykes 2021-10-26 00:08:10 +01:00 committed by GitHub
parent 1eb9eaefa1
commit 08a318c0b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -19,7 +19,13 @@ jobs:
add-awaiting-author:
runs-on: ubuntu-latest
if: ${{ !github.event.issue.pull_request && github.event.comment.author_association != 'COLLABORATOR' && github.event.comment.author_association != 'OWNER' }}
if: >
${{
!github.event.issue.pull_request
&& github.event.comment.author_association != 'COLLABORATOR'
&& github.event.comment.author_association != 'OWNER'
&& github.event.issue.state == 'open'
}}
steps:
- name: Add Awaiting Author labels when Updated
uses: actions-cool/issues-helper@v2