Using inputs in rules fails

Using parameters inputs in rules fails for me:

'$[[ inputs.csprojName | expand_vars ]]

variables:
  PROJECT_CSPROJ_NAME: '$[[ inputs.csprojName | expand_vars ]]'

.common_rules: &common_rules
  - if: '$inputs.csprojName'  
  # - if: '$[[ inputs.csprojName | expand_vars ]] != null'  
  # - if: '$[[ inputs.csprojName | expand_vars ]] != ""'  
  #- if: '$[[ inputs.csprojName | expand_vars ]] != null && $[[ inputs.csprojName | expand_vars ]] != ""'
  - if: '$CI_COMMIT_TAG == null'
  - if: '$CI_PIPELINE_SOURCE == "push2"
  - if: '$CI_COMMIT_REF_NAME =~ /^(release|hotfix|bugfix|feature)\/.*$/'

I get YAML invalid in my pipeline CI

Hello,

in your job, this line has an error

  • if: '$CI_PIPELINE_SOURCE == “push2”

One ’ is missing at the end of the line.

This syntax `if: ‘$inputs.csprojName’ is not correct. You have to get inputs between $[[ inputs.csprojName ]]

But at now, I didn’t test again if this syntax works.