From 10b41b2235589dd2f668fd0ea418ef2062d2efe5 Mon Sep 17 00:00:00 2001 From: Sean Dietrich Date: Tue, 23 Jul 2024 10:53:23 -0700 Subject: [PATCH] added condidtion to not run post build steps on main branch (#197) --- .circleci/config.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 05ec20c..8310005 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -211,8 +211,13 @@ jobs: # include_job_number_field: false # include_project_field: false # webhook: https://hooks.slack.com/services/T02BTKQ5F/B0225B1RPV1/9999111100000 - - ci-tools/trigger-pipeline: - parameters: '{"run_post_build_tests":true}' + - when: + condition: + not: + equal: [ main, << pipeline.git.branch >> ] + steps: + - ci-tools/trigger-pipeline: + parameters: '{"run_post_build_tests":true}' workflows: