Skip to content

Draft: BROKEN: ci: Refactor rules:changes:paths handling

Rework the way the paths are defined so we only have to define them once and make it easier to compose the rules for the jobs.

This is currently not working due to the gitlab parser being unable to unnest arrays inside rules:changes:paths.

Both yaml anchors and !reference create nested arrays which means netiehr of them work as either of the following example result in parsing errors.

changes:
  - "test"
  - !reference [.foo, bar]
  - *foobar

See upstream issue: [1]

[1] https://gitlab.com/gitlab-org/gitlab/-/issues/471377

Followup to !7507 (merged)

Edited by Jordan Petridіs

Merge request reports

Loading