The WolfspyreLabs Blog/ 2023/ Posts from May/ Using Workflow Rules in gitlab-ci/ Using Workflow Rules in gitlab-ci Workflow rules in Gitlab-CI #I got frustrated that certain jobs would pop off multiple times as a hunk of work was evaluated. I looked at the docs1; specifically this. and found it fairly easy to simply declare a set of rules to apply to the entire ci declaration. I’m sure I’ll want to improve this later, but this will work for now. workflow: rules: - if: $CI_COMMIT_MESSAGE =~ /-draft$/ when: never - if: $CI_PIPELINE_SOURCE == "push" https://docs.gitlab.com/ee/ci/yaml/workflow.html ↩︎