diff --git a/.azure-pipelines/advanced-test.yml b/.azure-pipelines/advanced-test.yml index 34668f5ce..9fc1ec64c 100644 --- a/.azure-pipelines/advanced-test.yml +++ b/.azure-pipelines/advanced-test.yml @@ -9,5 +9,5 @@ pr: none stages: - template: templates/stages/test-and-package-stage.yml # Notify failures only for release branches. - - template: templates/stages/notify-failure-stage.yml - condition: and(failed(), endsWith(variables['Build.SourceBranchName', '.x']) + - ${{ if endsWith(variables['Build.SourceBranchName'], '.x') }}: + - template: templates/stages/notify-failure-stage.yml