diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 3d31ea9a177..e6db6a0aed5 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() {