[Git][cmucl/cmucl][issue-489-update-gitlab-to-extends-syntax] Try to eliminate pipelines for branches and merges
Raymond Toy pushed to branch issue-489-update-gitlab-to-extends-syntax at cmucl / cmucl Commits: 06303ad0 by Raymond Toy at 2026-03-12T16:24:39-07:00 Try to eliminate pipelines for branches and merges We want branches to run CI, but we don't want MRs on a branch to have two pipelines (one for the branch and one for the MR). Adjust the workflow rules so that the default branch rule is placed before the MR exclusion. Branches still follow the `$CI_OPEN_MERGE_REQUESTS` guard to avoid duplicates once an MR is opened. The order of rules matters since it seems Gitlab evaluates them in order and stops at the first match. - - - - - 1 changed file: - .gitlab-ci.yml Changes: ===================================== .gitlab-ci.yml ===================================== @@ -15,10 +15,14 @@ workflow: - if: $CI_PIPELINE_SOURCE == "schedule" # Run on merge requests - if: $CI_PIPELINE_SOURCE == "merge_request_event" - # Don't create a branch pipeline when an MR pipeline already exists + # Run on the default branch (where there's no MR) + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + # Run on feature branches, but only if there's no open MR (to avoid + # duplicate pipelines). - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS when: never - if: $CI_COMMIT_BRANCH + # Run on tags - if: $CI_COMMIT_TAG # Default install configuration to download the cmucl tarballs to use View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/06303ad038c2855c11844853... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/06303ad038c2855c11844853... You're receiving this email because of your account on gitlab.common-lisp.net.
participants (1)
-
Raymond Toy (@rtoy)