From 19e934e87359cb36065e92aa16e60b0eee22933d Mon Sep 17 00:00:00 2001 From: Ivan Usov <ivan.usov@psi.ch> Date: Thu, 5 Sep 2024 13:21:11 +0200 Subject: [PATCH] Run pipeline only on default branch changes --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f5067eb..f71c697 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,6 +7,10 @@ default: before_script: - source /opt/miniconda3/etc/profile.d/conda.sh +workflow: + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + build-and-publish: stage: build-and-publish rules: -- GitLab