diff --git a/.circleci/config.yml b/.circleci/config.yml index 8430e0e37ec756..e2f93466b90e91 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -53,11 +53,13 @@ jobs: command: yarn install - when: condition: - or: - - equal: [ main, << pipeline.git.branch >> ] - - matches: - pattern: /0\.[0-9]+[\.[0-9]+]?-stable/ - value: << pipeline.git.branch >> + and: + - equal: [ "https://github.com/facebook/react-native", << pipeline.project.git_url >> ] + - or: + - equal: [ main, << pipeline.git.branch >> ] + - matches: + pattern: /0\.[0-9]+[\.[0-9]+]?-stable/ + value: << pipeline.git.branch >> steps: - run: name: "[Main or Stable] Create input fo config to test everything"