From 182e0f28992f42c2c5fedae27396bafe6aa9cc47 Mon Sep 17 00:00:00 2001 From: Rory Abraham Date: Tue, 16 Mar 2021 18:37:33 -0700 Subject: [PATCH] Skip CLA for staging and production PRs --- .github/workflows/cla.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 3a6c46f0d9d3..9bb481b51512 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -5,13 +5,12 @@ on: types: [created] pull_request_target: types: [opened, closed, synchronize] - branches-ignore: [staging, production] jobs: CLA: runs-on: ubuntu-latest # This job only runs for pull request comments or pull request target events (not issue comments) - if: github.event.issue.pull_request || github.event_name == 'pull_request_target' + if: github.event.issue.pull_request || (github.event_name == 'pull_request_target' && github.event.pull_request.head.ref != 'staging' && github.event.pull_request.head.ref != 'production') steps: - uses: actions-ecosystem/action-regex-match@9c35fe9ac1840239939c59e5db8839422eed8a73 id: sign