Expand CI variables before glob separation
1 unresolved thread
Expand CI variables before glob separation
We sort globs into three types depending on their content.
Doing that before expanding variables can lead to them
being sorted incorrectly. In consequence they are also
applied incorrectly, leading to missing some matches
when variables contain /
or **
.
Fixes #386595 (closed)
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
folder/file
variables:
dir: "folder"
file: "file"
full_path: "folder/file"
a:
rules:
- exists:
- $dir/$file
script:
- echo hi
b:
rules:
- exists:
- $full_path
script:
- echo hi