if/else expression not compiling for variables
eduard-bystrov opened this issue · 2 comments
eduard-bystrov commented
variables:
- ${{ if contains(variables['Build.SourceBranch'], '/Releases/') }}:
- group: Build.${{ variables['Build.SourceBranchName'] }}
- ${{ else }}:
- group: AnotherGroup
Unrecognized value: 'else'. Located at position 1 within expression: else. For more help, refer to https://go.microsoft.com/fwlink/?linkid=842996
/.azure/pipelines/build.yml (Line: 29, Col: 5): Expected at least one key-value pair in the mapping
max-zaytsev commented
Hi @eduard-bystrov,
Could you please provide more details about your issue?
eduard-bystrov commented
sry wrong repository))