version: 2.1 setup: true orbs: path-filtering: circleci/path-filtering@0.1.3 continuation: circleci/continuation@1.0.0 parameters: validate-bqetl: type: boolean default: false validate-sql: type: boolean default: false validate-routines: type: boolean default: false deploy: type: boolean default: false trigger-sql-generation: type: boolean default: false skip-stage-deploys: type: boolean default: false workflows: setup-main: when: equal: [main, << pipeline.git.branch >>] jobs: - continuation/continue: configuration_path: .circleci/workflows.yml parameters: '{"deploy": true}' setup-pr: when: and: - not: equal: [main, << pipeline.git.branch >>] jobs: - path-filtering/filter: base-revision: main config-path: .circleci/workflows.yml mapping: | requirements.txt validate-bqetl true requirements.txt validate-sql true requirements.txt validate-routines true bigquery_etl/.* validate-bqetl true tests/.* validate-bqetl true bigquery_etl/query_scheduling/.* validate-sql true sql/.* validate-sql true sql_generators/.* validate-sql true tests/sql/.* validate-sql true biquery_etl/routine/.* validate-routines true sql/mozfun/.* validate-routines true sql/moz-fx-data-shared-prod/udf/.* validate-routines true sql/moz-fx-data-shared-prod/udf_js/.* validate-routines true bqetl_project.yaml validate-sql true bqetl_project.yaml validate-routines true dags.yaml validate-sql true script/bqetl validate-bqetl true script/entrypoint validate-bqetl true .circleci/.* validate-sql true .circleci/.* validate-bqetl true .circleci/.* validate-routines true setup-tag: jobs: - continuation/continue: configuration_path: .circleci/workflows.yml filters: branches: ignore: /.*/