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