From 7982d3d4ed2c27751eae9e06f8bfadf385560873 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 28 Sep 2024 23:56:26 +0200 Subject: [PATCH] tools: only check teams on the default branch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/55124 Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell --- .github/workflows/linters.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 3d31ea9a17712f..e6db6a0aed5453 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -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() {