only trigger on invalid added

This commit is contained in:
aptalca 2023-03-20 15:51:47 -04:00
parent 7356620e24
commit fbc28f0cfc
No known key found for this signature in database
GPG Key ID: BE36CFFB9FD85548

View File

@ -56,7 +56,7 @@ jobs:
status_value: 'PRs Ready For Team Review'
- name: Add Comment on Invalid Labeling
uses: peter-evans/create-or-update-comment@v2.1.1
if: github.event_name == 'issues' && github.event.issue.state == 'open' && github.event.label.name == 'invalid'
if: ${{ github.event_name == 'issues' && github.event.issue.state == 'open' && github.event.label.name == 'invalid' && contains(github.event.issue.labels.*.name, 'invalid') }}
with:
issue-number: ${{ github.event.issue.number}}
body: |