Skip to content

Add rules:changes to the list of "Use rules with include"

Kosuke Kamiya requested to merge kkamiya_gl-master-patch-33068 into master

What does this MR do and why?

As this section describes, usage of rules:changes in include is supported from GitLab 16.4

https://docs.gitlab.com/ee/ci/yaml/includes.html#include-with-ruleschanges

include with rules:changes

History 

Use rules:changes to conditionally include other configuration files based on changed files. For example:

However, this is not listed in the "Use rules with include"list.

https://docs.gitlab.com/ee/ci/yaml/includes.html#use-rules-with-include

You can only use rules with certain variables, and these keywords:

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
image.png image.png

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Kosuke Kamiya

Merge request reports

Loading