How do I create a rule that only runs a job when a branch or tag has a specific prefix, and that prefix contains a slash?
I’ve tried various permutations on:
rules: if: $CI_COMMIT_TAG =~ /^releases[/]component[/]/ if: $CI_COMMIT_TAG =~ /^releases\/component\// if: "'$CI_COMMIT_TAG' =~ '/^releases\\/component\\//'"
No matter what I try I get one of three outcomes:
- YAML error
- Always runs the job
- Never runs the job