tools: only check teams on the default branch

PR-URL: https://github.com/nodejs/node/pull/55124
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Antoine du Hamel 2024-09-28 23:56:26 +02:00 committed by GitHub
parent ac53a5b29d
commit e7d27320c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -186,6 +186,7 @@ jobs:
with:
persist-credentials: false
- name: Get team members if possible
if: ${{ (github.event.pull_request && github.event.pull_request.base.ref == github.event.pull_request.base.repo.default_branch) || github.event.ref == github.event.repository.default_branch }}
id: team_members
run: |
get_list_members() {