I have below code:
build:
  stage: build
  rules: 
    - if: '$CI_COMMIT_TAG =~ /RELEASE/ && $CI_COMMIT_TAG =~ $CI_JOB_NAME'
      when: always  
  tags:
    - test_ios_msb
  script: 
    - echo $CI_COMMIT_REF_NAME
    - echo $CI_COMMIT_BRANCH
    - echo $CI_COMMIT_TAG
    - echo $CI_JOB_NAME 
    - echo $CI_PIPELINE_SOURCE
    - echo $CI_BUILD_TAG
    - echo "ok"
in this case the condition does not work
if you specify this condition:
- if: '$CI_COMMIT_TAG =~ /RELEASE/'
or like this:
- if: '$CI_COMMIT_TAG =~ $CI_JOB_NAME'
then the condition works
Tell me how to solve the problem?
 
    