[ci] Only notify discord on core team label (#32303)

Rather than notify on every label event on a PR by a core team member,
only do so for the specific core team label event.
This commit is contained in:
lauren 2025-02-03 12:57:51 -05:00 committed by GitHub
parent 442150e0e2
commit 0a82580bfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ jobs:
actor: ${{ github.event.pull_request.user.login }}
notify:
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' && github.event.label.name == 'React Core Team' }}
needs: check_maintainer
runs-on: ubuntu-latest
steps:

View File

@ -14,7 +14,7 @@ jobs:
actor: ${{ github.event.pull_request.user.login }}
notify:
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' && github.event.label.name == 'React Core Team' }}
needs: check_maintainer
runs-on: ubuntu-latest
steps: